Batch Job didn't wait delayed time #38990
Unanswered
mohamedali-pelcro
asked this question in
Q&A
Replies: 2 comments 2 replies
-
Laravel uses "sync" queue driver by default. Did you try to run it with some another driver? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yes I tried with redis the issue here they add them as a chain but the first one dispatched first so is there any way to add to chain instead of dispatch it ? framework/src/Illuminate/Bus/Batch.php Lines 161 to 197 in 6216534 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description:
$jobs[] = (new FirstJob)->delay(now()->addSeconds(90));
$jobs[] = (new SecondJob)->delay(now()->addSeconds(120));
Bus::batch([$jobs])->->dispatch();
the first job dispatched without waiting to it's delayed time
Steps To Reproduce:
Beta Was this translation helpful? Give feedback.
All reactions