def get_nginx_port(appid):
 filename = (('/etc/appscale/port-' + appid) + '.txt')
 file_handle = open(filename)
 port = file_handle.read()
 file_handle.close()
 return port

def get_nginx_port ( appid ) : filename = ( ( '/etc/appscale/port-' + appid ) + '.txt' ) file_handle = open ( filename ) port = file_handle . read ( ) file_handle . close ( ) return port
an appscale-specific method that callers can use to find out what port task queue api calls should be routed through .