Skip to content

Commit 5a07073

Browse files
committed
Fix a reading error when we added suspensions
Also remove excessie exception logging for these
1 parent 0deb262 commit 5a07073

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

app/Console/Commands/RunTasks.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function __construct()
6767
*/
6868
public function handle()
6969
{
70-
$tasks = Models\Task::where('queued', 0)->where('suspended', 0)->where('next_run', '<=', (Carbon::now())->toAtomString())->get();
70+
$tasks = Models\Task::where('queued', 0)->where('active', 1)->where('next_run', '<=', (Carbon::now())->toAtomString())->get();
7171

7272
$this->info(sprintf('Preparing to queue %d tasks.', count($tasks)));
7373
$bar = $this->output->createProgressBar(count($tasks));

app/Jobs/SendScheduledTask.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ public function handle()
9393
'run_status' => 1,
9494
'response' => $ex->getMessage()
9595
]);
96-
throw $ex;
9796
} finally {
9897
$cron = Cron::factory(sprintf('%s %s %s %s %s %s',
9998
$this->task->minute,

0 commit comments

Comments
 (0)