1

A program that runs for less than 1 second, every second on Supervisord causes the Supervisord to not run the program again. Why could that be?

I run "GET http://someurl.com/some/url" every second, and whenever this runs for less than 1 second (i.e. if I exclude "sleep(1)") then it will only run once, and never again. Any idea why?

4

2 回答 2

1

我必须设置:

startsecs=0

在 supervisord.conf

于 2013-04-18T13:39:43.240 回答
1

/tmp/supervisord.log如果没有足够的信息为什么 Supervisord 重新启动程序,请查看 Supervisord 日志文件尝试在 Supervisord 配置文件中设置程序的日志记录/etc/supervisord.conf并查看程序崩溃的原因:

[your_program_config:program]
stdout_logfile = /your_program/path/logs/your_program.log
redirect_stderr = true
于 2017-07-15T06:59:45.167 回答