|
@@ 44-55 (lines=12) @@
|
| 41 |
|
* |
| 42 |
|
* @Route("/jobs_all", name="dtc_queue_jobs_all") |
| 43 |
|
*/ |
| 44 |
|
public function jobsAllAction() |
| 45 |
|
{ |
| 46 |
|
$this->validateManagerType('dtc_queue.default_manager'); |
| 47 |
|
$class1 = $this->container->getParameter('dtc_queue.class_job'); |
| 48 |
|
$class2 = $this->container->getParameter('dtc_queue.class_job_archive'); |
| 49 |
|
$label1 = 'Non-Archived Jobs'; |
| 50 |
|
$label2 = 'Archived Jobs'; |
| 51 |
|
|
| 52 |
|
$params = $this->getDualGridParams($class1, $class2, $label1, $label2); |
| 53 |
|
|
| 54 |
|
return $this->render('@DtcQueue/Queue/grid.html.twig', $params); |
| 55 |
|
} |
| 56 |
|
|
| 57 |
|
/** |
| 58 |
|
* List jobs in system by default. |
|
@@ 151-162 (lines=12) @@
|
| 148 |
|
* |
| 149 |
|
* @Route("/runs", name="dtc_queue_runs") |
| 150 |
|
*/ |
| 151 |
|
public function runsAction() |
| 152 |
|
{ |
| 153 |
|
$this->validateRunManager(); |
| 154 |
|
$class1 = $this->container->getParameter('dtc_queue.class_run'); |
| 155 |
|
$class2 = $this->container->getParameter('dtc_queue.class_run_archive'); |
| 156 |
|
$label1 = 'Live Runs'; |
| 157 |
|
$label2 = 'Archived Runs'; |
| 158 |
|
|
| 159 |
|
$params = $this->getDualGridParams($class1, $class2, $label1, $label2); |
| 160 |
|
|
| 161 |
|
return $this->render('@DtcQueue/Queue/grid.html.twig', $params); |
| 162 |
|
} |
| 163 |
|
|
| 164 |
|
/** |
| 165 |
|
* List registered workers in the system. |