主管事件订阅挂在 READY 状态 [英] Supervisor event subscription is hanging on READY state

查看:51
本文介绍了主管事件订阅挂在 READY 状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有从主管文档借用的简单脚本(http://supervisord.org/events.html#event-listeners-and-event-notifications) 只是为了测试 eventlistener 是否从它订阅的进程中获取任何更新.无论进程的状态如何改变(我将 SIGSEGV 发送到程序),我只能看到READY"状态,而看不到任何其他数据.问题:是否应该手动调用侦听器脚本?如果不是,我认为以以下方式设置权限应该可以执行?

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

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

推荐答案

添加

autorestart=true
redirect_stderr=true 

到您的 [eventlistener:x] 部分并检查日志.

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

这篇关于主管事件订阅挂在 READY 状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆