JobsCommand: shift 'forever' before checking for...
...single job name fixes #12043
This commit is contained in:
parent
d0f7906f8b
commit
4c9c72d057
|
@ -17,13 +17,14 @@ class JobsCommand extends Command
|
|||
{
|
||||
public function runAction()
|
||||
{
|
||||
$forever = $this->params->shift('forever');
|
||||
$job = $this->params->shift();
|
||||
if ($job) {
|
||||
echo "Running (theoretically) $job\n";
|
||||
return;
|
||||
}
|
||||
|
||||
if ($this->params->shift('forever')) {
|
||||
if ($forever) {
|
||||
$this->runforever();
|
||||
} else {
|
||||
$this->runAllPendingJobs();
|
||||
|
|
Loading…
Reference in New Issue