$def with (jobs_running, jobs_waiting, from_timestamp)
$#
$# This file is part of INGInious. See the LICENSE and the COPYRIGHTS files for
$# more information about the licensing of this file.
$#
$var title: $:_("Job queue")
$# Start content
$def NavbarF():
- $:_("Job queue")
$:_("(current)")
$var Navbar: $:NavbarF()
$:_("Job queue")
$:_("This page shows a snapshot of the job queue.")
$:_("Running jobs")
$if jobs_running is not None and len(jobs_running) > 0:
$:_("Type") |
$:_("Local client") |
$:_("Agent name") |
$:_("Name") |
$:_("Launcher name") |
$:_("Started at") |
$:_("Timeout at") |
$for (job_id, is_current_client_job, agent_name, info, launcher, started_at, max_end) in jobs_running:
Task |
$if is_current_client_job:
$:_("Yes")
$else:
$:_("No")
|
$agent_name |
$info |
$launcher |
$from_timestamp(started_at).strftime("%d/%m/%Y %H:%M:%S") |
$from_timestamp(max_end).strftime("%d/%m/%Y %H:%M:%S") |
$else:
$:_("There are no jobs running")
$:_("Jobs in queue")
$if jobs_waiting is not None and len(jobs_waiting) > 0:
$:_("Type") |
$:_("Local") |
$:_("Name") |
$:_("Launcher name") |
$:_("Maximum runtime in seconds") |
$for (job_id, is_current_client_job, info, launcher, max_end) in jobs_waiting:
Task |
$if is_current_client_job:
$:_("Yes")
$else:
$:_("No")
|
$info |
$launcher |
$max_end |
$else:
$:_("There are no jobs waiting in queue")