1 | <?php |
||
25 | class QueueWorkBatchCommand extends WorkCommand |
||
26 | { |
||
27 | protected $name = 'queue:work-batch'; |
||
28 | |||
29 | protected $description = 'Run a Job for the AWS Batch queue'; |
||
30 | |||
31 | // protected $signature = 'queue:work-batch {connection} {job_id} {--tries=}'; |
||
|
|||
32 | protected $signature = 'queue:work-batch |
||
33 | {job_id : The job id in the database} |
||
34 | {connection? : The name of the queue connection to work} |
||
35 | {--memory=128 : The memory limit in megabytes} |
||
36 | {--timeout=60 : The number of seconds a child process can run} |
||
37 | {--tries=0 : Number of times to attempt a job before logging it failed}'; |
||
38 | |||
39 | |||
40 | protected $manager; |
||
41 | protected $exceptions; |
||
42 | |||
43 | public function __construct(QueueManager $manager, Worker $worker, Handler $exceptions) |
||
49 | |||
50 | public function fire() |
||
64 | |||
65 | // TOOD: Refactor out the logic here into an extension of the Worker class |
||
66 | protected function runJob() |
||
93 | |||
94 | /** |
||
95 | * Gather all of the queue worker options as a single object. |
||
96 | * |
||
97 | * @return \Illuminate\Queue\WorkerOptions |
||
98 | */ |
||
99 | protected function gatherWorkerOptions() |
||
107 | } |
||
108 |
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.