More Laravel-esq job processing

This commit is contained in:
Dane Everitt 2020-10-05 20:46:41 -07:00
parent e1e079bc12
commit 0f4f2235a3
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
3 changed files with 27 additions and 278 deletions

View file

@ -73,7 +73,7 @@ class ProcessScheduleService
$this->taskRepository->update($task->id, ['is_queued' => true]);
$this->dispatcher->dispatch(
(new RunTaskJob($task->id, $schedule->id))->delay($task->time_offset)
(new RunTaskJob($task))->delay($task->time_offset)
);
}
}