$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(): $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: $for (job_id, is_current_client_job, agent_name, info, launcher, started_at, max_end) in jobs_running:
$:_("Type") $:_("Local client") $:_("Agent name") $:_("Name") $:_("Launcher name") $:_("Started at") $:_("Timeout at")
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: $for (job_id, is_current_client_job, info, launcher, max_end) in jobs_waiting:
$:_("Type") $:_("Local") $:_("Name") $:_("Launcher name") $:_("Maximum runtime in seconds")
Task $if is_current_client_job: $:_("Yes") $else: $:_("No") $info $launcher $max_end
$else: $:_("There are no jobs waiting in queue")