Exemple #1
0
def cluster(request):
    return util.render_tpl(
        request, {
            "dc": request.data_center,
            "master": request.master,
            "trace": request.trace
        }, "cluster.html")
Exemple #2
0
def index(request):
    return util.render_tpl(
        request, {
            "dc": request.data_center,
            "master": request.master,
            "trace": request.trace
        }, "index.html")
Exemple #3
0
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")
Exemple #4
0
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")
Exemple #5
0
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")
Exemple #6
0
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")
Exemple #7
0
def cluster(request):
    return util.render_tpl(request, {"dc":request.data_center,"master":request.master, "trace":request.trace},"cluster.html")
Exemple #8
0
def index(request):
    return util.render_tpl(request, {"dc":request.data_center,"master":request.master,"trace":request.trace}, "index.html")