8000 [Messenger] Double check if pcntl function exists by Toflar · Pull Request #57514 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Messenger] Double check if pcntl function exists #57514

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
Jun 24, 2024

Conversation

Toflar
Copy link
Contributor
@Toflar Toflar commented Jun 24, 2024
Q A
Branch? 6.4
Bug fix? yes
Deprecations? no
Issues
License MIT

I have a system where we use the kernel.terminate event to trigger messenger:consume in case there's no real worker available. Which means there might be the case that when building the container on cli, pcntl_signal_dispatch exists but in the web process it of course doesn't.

Super edge-case but these 3 lines would save me from implementing some logic to unregister this listener myself and I don't see why it would hurt anybody else.

@carsonbot carsonbot added this to the 6.4 milestone Jun 24, 2024
@xabbuh
Copy link
Member
xabbuh commented Jun 24, 2024

For 5.4?

@carsonbot carsonbot changed the title Double check if pcntl function exists [Messenger] Double check if pcntl function exists Jun 24, 2024
@nicolas-grekas
Copy link
Member

Thank you @Toflar.

@nicolas-grekas nicolas-grekas merged commit 10514a6 into symfony:6.4 Jun 24, 2024
9 of 10 checks passed
@Toflar Toflar deleted the fix/double-check-function branch June 24, 2024 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0