Example #1
0
def charts(username, root_wf_id, wf_id):
    """
    Get job-distribution information
    """
    dashboard = Dashboard(g.master_db_url, root_wf_id, wf_id)
    job_dist = dashboard.plots_transformation_statistics(wf_id)

    d = []
    for i in range(len(job_dist)):
        d.append(
            {
                "name": job_dist[i].transformation,
                "count": {
                    "total": job_dist[i].count,
                    "success": job_dist[i].success,
                    "failure": job_dist[i].failure,
                },
                "time": {
                    "total": job_dist[i].sum,
                    "min": job_dist[i].min,
                    "max": job_dist[i].max,
                    "avg": job_dist[i].avg,
                },
            }
        )

    return render_template(
        "workflow/charts.html", root_wf_id=root_wf_id, wf_id=wf_id, job_dist=d
    )
Example #2
0
def charts(username, root_wf_id, wf_id):
    """
    Get job-distribution information
    """
    dashboard = Dashboard(g.master_db_url, root_wf_id, wf_id)
    job_dist = dashboard.plots_transformation_statistics(wf_id)

    return render_template('workflow/charts.html', root_wf_id=root_wf_id, wf_id=wf_id, job_dist=job_dist)
Example #3
0
def charts(username, root_wf_id, wf_id):
    """
    Get job-distribution information
    """
    dashboard = Dashboard(g.master_db_url, root_wf_id, wf_id)
    job_dist = dashboard.plots_transformation_statistics(wf_id)

    return render_template("workflow/charts.html", root_wf_id=root_wf_id, wf_id=wf_id, job_dist=job_dist)
Example #4
0
def charts(root_wf_id, wf_id):
    '''
    Get job-distribution information
    '''
    dashboard = Dashboard(g.master_db_url, root_wf_id, wf_id)
    job_dist = dashboard.plots_transformation_statistics(wf_id)

    return render_template('workflow/charts.html', root_wf_id=root_wf_id, wf_id=wf_id, job_dist=job_dist)