Skip to content

Reset SIGALRM when job is processed #23

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

Merged
merged 1 commit into from
Jul 5, 2021

Conversation

fehomeh
Copy link
Contributor

@fehomeh fehomeh commented Jul 5, 2021

When the job is fetched from the queue, there is a timeout registered using \Illuminate\Queue\Worker::registerTimeoutHandler in \Enqueue\LaravelQueue\Worker::onMessageReceived.
But the timeout is not cleaned up when the job is processed.
Using the \Enqueue\Consumption\Context\MessageResult event, we can clean the timeout set by pcntl_alarm in a similar way how it's done in the Laravel's worker.

@makasim makasim merged commit 74d90cb into php-enqueue:master Jul 5, 2021
@fehomeh fehomeh deleted the fix-sigalarm-processing branch July 5, 2021 15:59
@fehomeh
Copy link
Contributor Author

fehomeh commented Jul 8, 2021

Thanks for the blazing fast merge of the PR, @makasim! Can I ask for your plans about new patch release?

@makasim
Copy link
Member

makasim commented Jul 8, 2021

https://github.com/php-enqueue/laravel-queue/releases/tag/0.10.5

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