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?
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2Cb7x8X
via IFTTT
Aucun commentaire:
Enregistrer un commentaire