Skip to content
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

[8.x] Add delay() to PendingChain #34789

Merged
merged 1 commit into from Oct 12, 2020
Merged

Conversation

themsaid
Copy link
Member

@themsaid themsaid commented Oct 11, 2020

This PR handles issue #34762 by adding a delay() method to be used with chained jobs.

QuoteJob::withChain([
    new NestedQuoteJob($quote),
])->delay(now()->addMinutes(1))
   ->dispatch($quote);

@taylorotwell taylorotwell merged commit e2d5038 into laravel:8.x Oct 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants