There are some jobs delay to tomorrow ,It work correctly and it should run in tomorrow. The code like this.
$delayTo = now()->addDays(1);
ProcessSomeThing::dispatch($params)->delay($delayTo);
But I am required to add a extra function to run it immediately not wait to tomorrow; How to do it?
my idea but not sure is it good
Changing the 'jobs.available_at' column a good way?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire