Minor queue fixes and add active option
This commit is contained in:
parent
1296d08dcb
commit
51f4ea7d5d
5 changed files with 173 additions and 16 deletions
|
@ -67,7 +67,7 @@ class RunTasks extends Command
|
|||
*/
|
||||
public function handle()
|
||||
{
|
||||
$tasks = Models\Task::where('queued', 0)->where('next_run', '<=', (Carbon::now())->toAtomString())->get();
|
||||
$tasks = Models\Task::where('queued', 0)->where('active', 1)->where('next_run', '<=', (Carbon::now())->toAtomString())->get();
|
||||
|
||||
$this->info(sprintf('Preparing to queue %d tasks.', count($tasks)));
|
||||
$bar = $this->output->createProgressBar(count($tasks));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue