Closed denistorresan closed 6 months ago
That's a one-time command. Does your container crash on startup?
no, the container only display these errors / warning than continue to work. I think that since this command run and exit, supervisor tries to restart few times before mark as "failed". For a correct log without warnings I added the following configurations on [program:clear-scheduler-cache] :
startsecs = 0
startretries = 1
Now logs does not display any warning:
2024-04-29 10:05:33 2024-04-29 08:05:33,593 INFO spawned: 'clear-scheduler-cache_00' with pid 38
2024-04-29 10:05:33 2024-04-29 08:05:33,623 INFO success: clear-scheduler-cache_00 entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
2024-04-29 10:05:34 2024-04-29 08:05:34,191 INFO exited: clear-scheduler-cache_00 (exit status 0; expected)
I sumbitted a PR #72 that solves the warn.
Hi, I got this error at startup (I'm using your latest sources). Seems because "php artisan schedule:clear-cache" it's a command and not a deamon. Maybe moving to supercronic will solve the problem? Thank you!