Add possibility to run disabled cron

This commit is contained in:
Julien Tant 2021-04-24 15:06:21 -07:00
parent 2fc288e53a
commit 552b9d3c33
4 changed files with 12 additions and 10 deletions

View file

@ -53,7 +53,7 @@ class ProcessScheduleService
$task->update(['is_queued' => true]);
});
$job = new RunTaskJob($task);
$job = new RunTaskJob($task, $now);
if (!$now) {
$this->dispatcher->dispatch($job->delay($task->time_offset));