Skip to content

fix: remove sleep(1) hack in SupervisorWorker#143

Merged
s2x merged 4 commits intomasterfrom
fix/36-supervisor-worker-hack
Apr 14, 2026
Merged

fix: remove sleep(1) hack in SupervisorWorker#143
s2x merged 4 commits intomasterfrom
fix/36-supervisor-worker-hack

Conversation

@s2x
Copy link
Copy Markdown
Collaborator

@s2x s2x commented Apr 14, 2026

Summary

  • Remove unnecessary sleep(1) hack after handler execution
  • Add warning log when process terminates unexpectedly
  • Use exit(1) instead of exit for proper exit code
  • Keep never return type (PHP recognizes exit as a valid never-returning operation)

Closes #36

Piotr Hałas added 4 commits April 14, 2026 23:19
- Remove unnecessary sleep(1) after handler execution
- Add detailed log message with service context when process terminates unexpectedly
- Use exit(1) for proper error code
- Add type assertions for config values to fix phpstan errors
- Remove 'final' to allow testing via inheritance
@s2x s2x merged commit 562aed5 into master Apr 14, 2026
22 checks passed
@s2x s2x deleted the fix/36-supervisor-worker-hack branch April 14, 2026 21:34
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.

SupervisorWorker — sleep(1); exit; Hack

1 participant