|
@@ 42-53 (lines=12) @@
|
| 39 |
|
* |
| 40 |
|
* @Route("/jobs_all", name="dtc_queue_jobs_all") |
| 41 |
|
*/ |
| 42 |
|
public function jobsAllAction() |
| 43 |
|
{ |
| 44 |
|
$this->validateManagerType('dtc_queue.default_manager'); |
| 45 |
|
$class1 = $this->container->getParameter('dtc_queue.class_job'); |
| 46 |
|
$class2 = $this->container->getParameter('dtc_queue.class_job_archive'); |
| 47 |
|
$label1 = 'Non-Archived Jobs'; |
| 48 |
|
$label2 = 'Archived Jobs'; |
| 49 |
|
|
| 50 |
|
$params = $this->getDualGridParams($class1, $class2, $label1, $label2); |
| 51 |
|
|
| 52 |
|
return $this->render('@DtcQueue/Queue/grid.html.twig', $params); |
| 53 |
|
} |
| 54 |
|
|
| 55 |
|
/** |
| 56 |
|
* List jobs in system by default. |
|
@@ 138-149 (lines=12) @@
|
| 135 |
|
* |
| 136 |
|
* @Route("/runs", name="dtc_queue_runs") |
| 137 |
|
*/ |
| 138 |
|
public function runsAction() |
| 139 |
|
{ |
| 140 |
|
$this->validateRunManager(); |
| 141 |
|
$class1 = $this->container->getParameter('dtc_queue.class_run'); |
| 142 |
|
$class2 = $this->container->getParameter('dtc_queue.class_run_archive'); |
| 143 |
|
$label1 = 'Live Runs'; |
| 144 |
|
$label2 = 'Archived Runs'; |
| 145 |
|
|
| 146 |
|
$params = $this->getDualGridParams($class1, $class2, $label1, $label2); |
| 147 |
|
|
| 148 |
|
return $this->render('@DtcQueue/Queue/grid.html.twig', $params); |
| 149 |
|
} |
| 150 |
|
|
| 151 |
|
/** |
| 152 |
|
* List registered workers in the system. |