1 | <?php declare(strict_types=1); |
||
9 | class WorkerController extends Controller |
||
10 | { |
||
11 | /** |
||
12 | * @var string |
||
13 | * The RPQ Job ID as passed by the RPQ CLI |
||
14 | */ |
||
15 | public $jobId; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | * The name of the RPQ queue that this command should search for jobs in. |
||
20 | */ |
||
21 | public $name = 'default'; |
||
22 | |||
23 | /** |
||
24 | * Command line options |
||
25 | * @param string $actionID |
||
26 | * @return array |
||
27 | */ |
||
28 | public function options($actionID) |
||
35 | |||
36 | /** |
||
37 | * Starts a worker in process mode |
||
38 | * @return integer |
||
39 | */ |
||
40 | public function actionProcess() |
||
76 | } |