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()
|
public function runAction()
|
||||||
{
|
{
|
||||||
|
$forever = $this->params->shift('forever');
|
||||||
$job = $this->params->shift();
|
$job = $this->params->shift();
|
||||||
if ($job) {
|
if ($job) {
|
||||||
echo "Running (theoretically) $job\n";
|
echo "Running (theoretically) $job\n";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->params->shift('forever')) {
|
if ($forever) {
|
||||||
$this->runforever();
|
$this->runforever();
|
||||||
} else {
|
} else {
|
||||||
$this->runAllPendingJobs();
|
$this->runAllPendingJobs();
|
||||||
|
|
Loading…
Reference in New Issue