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

[5.8] Fix worker timeout handler when there is no job processing #29366

Merged
merged 1 commit into from
Aug 1, 2019

Conversation

djtarazona
Copy link
Contributor

@djtarazona djtarazona commented Aug 1, 2019

Fixes the issue mentioned in #29024 (comment)

The queue worker timeout handler may be called with a null $job if the timeout is reached when there is no job processing (perhaps it took too long to fetch the next job in the worker loop). This fix checks to make sure there is a job before attempting to mark the as failed if it will exceed the maximum number of attempts.

The queue worker timeout handler may be called with a null `$job` if the
timeout is reached when there is no job processing (perhaps it took too long
to fetch the next job in the worker loop). This fix checks to make sure there
is a job before attempting to mark the as failed if it will exceed the maximum
number of attempts.
@djtarazona
Copy link
Contributor Author

@cannahan Can you see if this fixes your issue? #29024 (comment)

@taylorotwell taylorotwell merged commit c7eaba6 into laravel:5.8 Aug 1, 2019
@GrahamCampbell GrahamCampbell changed the title Fix worker timeout handler when there is no job processing [5.8] Fix worker timeout handler when there is no job processing Aug 1, 2019
@cannahan
Copy link

cannahan commented Aug 1, 2019

@djtarazona Thanks for taking the time. It works. Much appreciated

@djtarazona djtarazona deleted the patch-1 branch August 7, 2019 17:16
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.

3 participants