Remove old 'active' column and replace some references with 'suspended' in place

This commit is contained in:
Dane Everitt 2016-09-01 21:21:01 -04:00
parent 38eae88bd0
commit 8e657a0bf0
5 changed files with 37 additions and 8 deletions

View file

@ -67,7 +67,7 @@ class RunTasks extends Command
*/
public function handle()
{
$tasks = Models\Task::where('queued', 0)->where('active', 1)->where('next_run', '<=', (Carbon::now())->toAtomString())->get();
$tasks = Models\Task::where('queued', 0)->where('suspended', 0)->where('next_run', '<=', (Carbon::now())->toAtomString())->get();
$this->info(sprintf('Preparing to queue %d tasks.', count($tasks)));
$bar = $this->output->createProgressBar(count($tasks));