示例#1
0
def task_detail(job_id=None, task_name=None):
    """ Show a detailed description of a specific task. """
    jobs = get_jobs()
    job = [job for job in jobs if str(job['job_id']) == job_id][0]
    return render_template(
        'task_detail.html',
        job=job,
        task_name=task_name,
        task=[task for task in job['tasks'] if task['name'] == task_name][0])
示例#2
0
def task_detail(job_id=None, task_name=None):
    """ Show a detailed description of a specific task. """
    jobs = get_jobs()
    job = [job for job in jobs if str(job['job_id']) == job_id][0]
    return render_template('task_detail.html',
                           job=job,
                           task_name=task_name,
                           task=[task for task in job['tasks']
                                 if task['name'] == task_name][0])
示例#3
0
def job_detail(job_id=None):
    """ Show a detailed description of a Job's status. """
    jobs = [job for job in get_jobs() if str(job['job_id']) == job_id]
    if not jobs:
        abort(404)
    return render_template('job_detail.html', job=jobs[0])
示例#4
0
def jobs():
    """ Show information on all known Jobs. """
    return render_template('jobs.html',
                           jobs=get_jobs())
示例#5
0
文件: views.py 项目: studer/dagobah
def job_detail(job_id=None):
    """ Show a detailed description of a Job's status. """
    jobs = get_jobs()
    job = [job for job in jobs if str(job['job_id']) == job_id][0]
    return render_template('job_detail.html', job=job)
示例#6
0
文件: views.py 项目: studer/dagobah
def jobs():
    """ Show information on all known Jobs. """
    return render_template('jobs.html', jobs=get_jobs())
示例#7
0
def job_detail(job_id=None):
    """ Show a detailed description of a Job's status. """
    jobs = [job for job in get_jobs() if str(job['job_id']) == job_id]
    if not jobs:
        abort(404)
    return render_template('job_detail.html', job=jobs[0])
示例#8
0
文件: views.py 项目: studer/dagobah
def task_detail(job_id=None, task_name=None):
    """ Show a detailed description of a specific task. """
    jobs = get_jobs()
    job = [job for job in jobs if str(job["job_id"]) == job_id][0]
    return render_template("task_detail.html", job=job, task_name=task_name)
示例#9
0
文件: views.py 项目: studer/dagobah
def job_detail(job_id=None):
    """ Show a detailed description of a Job's status. """
    jobs = get_jobs()
    job = [job for job in jobs if str(job["job_id"]) == job_id][0]
    return render_template("job_detail.html", job=job)