From 5a07073e0afb98861603f2a5ab53919df81d469b Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sun, 4 Sep 2016 18:07:01 -0400 Subject: [PATCH] Fix a reading error when we added suspensions Also remove excessie exception logging for these --- app/Console/Commands/RunTasks.php | 2 +- app/Jobs/SendScheduledTask.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Console/Commands/RunTasks.php b/app/Console/Commands/RunTasks.php index cb69cc15c..351dabd68 100644 --- a/app/Console/Commands/RunTasks.php +++ b/app/Console/Commands/RunTasks.php @@ -67,7 +67,7 @@ class RunTasks extends Command */ public function handle() { - $tasks = Models\Task::where('queued', 0)->where('suspended', 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)); diff --git a/app/Jobs/SendScheduledTask.php b/app/Jobs/SendScheduledTask.php index d8348a583..96d4a669a 100644 --- a/app/Jobs/SendScheduledTask.php +++ b/app/Jobs/SendScheduledTask.php @@ -93,7 +93,6 @@ class SendScheduledTask extends Job implements ShouldQueue 'run_status' => 1, 'response' => $ex->getMessage() ]); - throw $ex; } finally { $cron = Cron::factory(sprintf('%s %s %s %s %s %s', $this->task->minute,