Fix a reading error when we added suspensions
Also remove excessie exception logging for these
This commit is contained in:
parent
0deb262c56
commit
5a07073e0a
2 changed files with 1 additions and 2 deletions
|
@ -67,7 +67,7 @@ class RunTasks extends Command
|
||||||
*/
|
*/
|
||||||
public function handle()
|
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)));
|
$this->info(sprintf('Preparing to queue %d tasks.', count($tasks)));
|
||||||
$bar = $this->output->createProgressBar(count($tasks));
|
$bar = $this->output->createProgressBar(count($tasks));
|
||||||
|
|
|
@ -93,7 +93,6 @@ class SendScheduledTask extends Job implements ShouldQueue
|
||||||
'run_status' => 1,
|
'run_status' => 1,
|
||||||
'response' => $ex->getMessage()
|
'response' => $ex->getMessage()
|
||||||
]);
|
]);
|
||||||
throw $ex;
|
|
||||||
} finally {
|
} finally {
|
||||||
$cron = Cron::factory(sprintf('%s %s %s %s %s %s',
|
$cron = Cron::factory(sprintf('%s %s %s %s %s %s',
|
||||||
$this->task->minute,
|
$this->task->minute,
|
||||||
|
|
Loading…
Reference in a new issue