-
Notifications
You must be signed in to change notification settings - Fork 11.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Delay withChain Errors #34762
Comments
Although the docs don't specifically show an example of using |
@mikebrandl does it work if you put delay before dispatch? |
Hi @driesvints Sadly not, just tried it. |
Need more feedback from @themsaid on this but looks like the |
Fixed in next patch release. |
Description:
I have a delayed Queue Job, withChain, which I need to run two jobs shortly after each other.
QuoteJob::withChain([
new NestedQuoteJob($quote),
])->dispatch($quote)->delay(now()->addMinutes(1));
When using this I get the following error: message: "Call to a member function delay() on string"
This worked fine on Laravel 7 which is what I am attempting to upgrade from, so appears a new bug, non chained jobs work fine.
E.G QuoteJob::dispatch($quote)->delay(now()->addMinutes(1));
Steps To Reproduce:
Delay a dispatched, chained job.
The text was updated successfully, but these errors were encountered: