Documentation about supervisord is not accurate #49633
Unanswered
macropay-solutions
asked this question in
General
Replies: 2 comments 1 reply
-
You could create a PR in the respective repository: https://github.com/laravel/docs |
Beta Was this translation helpful? Give feedback.
1 reply
-
I found an alternative solution to supervisord. A new container with this script as an entrypoint in its task definition coupled with essential=false |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As explained here https://stackoverflow.com/questions/76462520/how-to-handle-sigterm-signal-on-laravel-8-9-10-deploy-with-docker-containers-in the supervisord starts a new worker imediatelly after the SIGTERM is received by laravel and the worker finished its ongoing job and quits because supervisord is not aware of SIGTERM.
This might lead to jobs being not executed 100% in the time between the worker is being stopped and the container is being stopped (deploy or scale down scenario).
(an idempotent job would solve that but anyway, the documentation is not accurate)
I propose that the laravel documentation is updated in this regard. Supervisord is not a bulletproof solution.
Beta Was this translation helpful? Give feedback.
All reactions