Supervisor event subscription is hanging on READY state

青春壹個敷衍的年華 提交于 2019-12-13 05:17:32

问题


I'm having simple script borrowed from supervisor docs (http://supervisord.org/events.html#event-listeners-and-event-notifications) just to test if the eventlistener is getting any updates from the process it's subscribed to. No matter how state of the process is changed (I'm sending SIGSEGV to program) I'm only able to see "READY" state and none of any other data. Question: is listener script supposed to be called manually? If not I thought setting the permissions in the following way should be fine to be executable?

-rwxr-xr-x 1 root root 699 Oct 23 11:33 mylistener.py


回答1:


Add

autorestart=true
redirect_stderr=true 

to your [eventlistener:x] section and check the logs.



来源:https://stackoverflow.com/questions/26535635/supervisor-event-subscription-is-hanging-on-ready-state

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!