Skip to content

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

Merged
taylorotwell merged 1 commit into
laravel:5.8from
djtarazona:patch-1
Aug 1, 2019
Merged

[5.8] Fix worker timeout handler when there is no job processing#29366
taylorotwell merged 1 commit into
laravel:5.8from
djtarazona:patch-1

Conversation

@djtarazona

@djtarazona djtarazona commented Aug 1, 2019

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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

cannahan commented Aug 1, 2019

Copy link
Copy Markdown

@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