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

[9.x] Restart syscalls for SIGALRM when worker times out a job #45871

Merged
merged 1 commit into from
Jan 30, 2023
Merged

[9.x] Restart syscalls for SIGALRM when worker times out a job #45871

merged 1 commit into from
Jan 30, 2023

Conversation

amiranagram
Copy link
Contributor

@amiranagram amiranagram commented Jan 30, 2023

As mentioned in #45867 whenever a SIGALRM happens during an execution of a query a PDOException gets thrown from the MSSql server. In simpler terms, whenever SIGALRM arrives the MSSQL connection gets broken resulting in the query not being to execute itself, hence throwing the error.

Although restart_syscalls argument is true by default in pcntl_signal this will not work with SIGALRM signal due to the backwards compatibility left by Nikita Popov in this commit.

@driesvints
Copy link
Member

Please add a thorough description at what this fixes for the person that will review this PR and not link to an issue (see the PR template).

@amiranagram
Copy link
Contributor Author

Updated @driesvints

@taylorotwell taylorotwell merged commit 159de46 into laravel:9.x Jan 30, 2023
@amiranagram amiranagram deleted the queue-sigalrm-restart-syscalls branch January 30, 2023 17:08
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

3 participants