def cluster(request): return util.render_tpl( request, { "dc": request.data_center, "master": request.master, "trace": request.trace }, "cluster.html")
def index(request): return util.render_tpl( request, { "dc": request.data_center, "master": request.master, "trace": request.trace }, "index.html")
def job_detail(request): return util.render_tpl( request, { "dc": request.data_center, "master": request.master, "trace": request.trace, "jobid": request.GET.get("jobid", None) }, "job.html")
def job_all(request): galaxy = sdk.GalaxySDK(request.master) jobs, status = galaxy.get_all_job() job_dicts = [] for job in jobs: job_dict = pb2dict.protobuf_to_dict(job) job_dict['state'] = master_pb2.JobState.Name(job_dict['state']) job_dicts.append(job_dict) return util.render_tpl(request, {"jobs":job_dicts, "dc":request.data_center, "master":request.master, "trace":request.trace}, "index.html")
def job_detail(request): return util.render_tpl(request, {"dc":request.data_center,"master":request.master,"trace":request.trace, "jobid":request.GET.get("jobid", None)}, "job.html")
def cluster(request): return util.render_tpl(request, {"dc":request.data_center,"master":request.master, "trace":request.trace},"cluster.html")
def index(request): return util.render_tpl(request, {"dc":request.data_center,"master":request.master,"trace":request.trace}, "index.html")