Skip to content

[8.x] Ignore max attempts if retryUntil is set#35214

Merged
taylorotwell merged 1 commit intolaravel:8.xfrom
themsaid:pr7173
Nov 13, 2020
Merged

[8.x] Ignore max attempts if retryUntil is set#35214
taylorotwell merged 1 commit intolaravel:8.xfrom
themsaid:pr7173

Conversation

@themsaid
Copy link
Copy Markdown
Member

Currently if a job fails due to an exception and retryUntil time has not passed yet, the worker will check for maxAttempts. However, if the job was released and retryUntil has not passed yet, the worker will not check for maxAttempts.

The PR unifies the behaviour. So with this PR, if a retryUntil is set the worker is going to ignore maxAttempts completely.

Solves #35199

@taylorotwell
Copy link
Copy Markdown
Member

It looks like maxExceptions will still be respected? If that is the case I don't have a big problem with this change.

@themsaid
Copy link
Copy Markdown
Member Author

No behaviour change around maxExceptions with this PR.

@taylorotwell taylorotwell merged commit 56f79e2 into laravel:8.x Nov 13, 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.

2 participants