Example #1
0
def runningJobs(request, experiment_id):
    MRlist = [thistask for thistask in MRtask.getTaskList(experiment_id, status="running")]
    if "check" in request.POST and request.POST["check"] == "yesplease":
        for task in MRlist:
            task.check_status_on_hpc()
    jobs = [(jobs.dataset, jobs.get_params("jobid", value=True)) for jobs in MRlist]
    c = Context({"experiment_id": experiment_id, "jobs": jobs})
    return render_to_response("mrtardis/joblist.html", c)
Example #2
0
 def getChoices(status):
     return [
         (mytask.dataset.id, mytask.dataset.description)
         for mytask in MRtask.getTaskList(experiment_id, status=status)
     ]