Re: [Supervisor-users] infinite startup retries?
thanks to you both. i've clearly been missing out on most of the documenation for supervisord. perhaps even _mentioning_ http://supervisor.org in the man page would help! honestly -- it's bad enough that the man page doesn't offer complete documentation, but to not even mention the site where the documentation does exist is a huge omission. paul paul lockaby wrote: > If you go this route, I did write a program in Perl that does this that you > could work with: > > https://github.com/plockaby/supercron > > > > On Dec 2, 2016, at 11:28 AM, skee...@skeeved.org wrote: > > > > On 12/02/2016 06:08 PM, Paul Fox wrote: > >> rod wrote: > >> > Afaik infinite retries is not supported, but using a very high > >> > startretries > >> > (eg. ) gives you a decent amount of infinite... > >> > >> oh -- startretries is something i can set in the conf file? i thought > >> it was an internal parameter of some sort. where can i find a full > >> list of the settable values? i would have expected it to be in the > >> man page. the backoff sequence is also not specified -- will the > >> delay interval eventually stop growing? > >> > >> thanks, > >> paul > > > > You might also want to look at the event subsystem available in > > supervisord. > > > > http://supervisord.org/events.html > > > > You could then have your code respond to, for instance, TICK_60 events and > > decide whether it's the appropriate time to do whatever work they are > > designed to do. > > > > > > > > ___ > > Supervisor-users mailing list > > Supervisor-users@lists.supervisord.org > > https://lists.supervisord.org/mailman/listinfo/supervisor-users > > ___ > Supervisor-users mailing list > Supervisor-users@lists.supervisord.org > https://lists.supervisord.org/mailman/listinfo/supervisor-users > =-- paul fox, p...@foxharp.boston.ma.us (arlington, ma, where it's 43.7 degrees) ___ Supervisor-users mailing list Supervisor-users@lists.supervisord.org https://lists.supervisord.org/mailman/listinfo/supervisor-users
Re: [Supervisor-users] infinite startup retries?
If you go this route, I did write a program in Perl that does this that you could work with: https://github.com/plockaby/supercron > On Dec 2, 2016, at 11:28 AM, skee...@skeeved.org wrote: > > On 12/02/2016 06:08 PM, Paul Fox wrote: >> rod wrote: >> > Afaik infinite retries is not supported, but using a very high startretries >> > (eg. ) gives you a decent amount of infinite... >> >> oh -- startretries is something i can set in the conf file? i thought >> it was an internal parameter of some sort. where can i find a full >> list of the settable values? i would have expected it to be in the >> man page. the backoff sequence is also not specified -- will the >> delay interval eventually stop growing? >> >> thanks, >> paul > > You might also want to look at the event subsystem available in supervisord. > > http://supervisord.org/events.html > > You could then have your code respond to, for instance, TICK_60 events and > decide whether it's the appropriate time to do whatever work they are > designed to do. > > > > ___ > Supervisor-users mailing list > Supervisor-users@lists.supervisord.org > https://lists.supervisord.org/mailman/listinfo/supervisor-users ___ Supervisor-users mailing list Supervisor-users@lists.supervisord.org https://lists.supervisord.org/mailman/listinfo/supervisor-users
Re: [Supervisor-users] infinite startup retries?
On 12/02/2016 06:08 PM, Paul Fox wrote: rod wrote: > Afaik infinite retries is not supported, but using a very high startretries > (eg. ) gives you a decent amount of infinite... oh -- startretries is something i can set in the conf file? i thought it was an internal parameter of some sort. where can i find a full list of the settable values? i would have expected it to be in the man page. the backoff sequence is also not specified -- will the delay interval eventually stop growing? thanks, paul You might also want to look at the event subsystem available in supervisord. http://supervisord.org/events.html You could then have your code respond to, for instance, TICK_60 events and decide whether it's the appropriate time to do whatever work they are designed to do. ___ Supervisor-users mailing list Supervisor-users@lists.supervisord.org https://lists.supervisord.org/mailman/listinfo/supervisor-users
Re: [Supervisor-users] infinite startup retries?
Btw, i think the cron job it's a better solution for this case Regards El 2 dic. 2016 12:09 PM, "Paul Fox"escribió: > rod wrote: > > Afaik infinite retries is not supported, but using a very high > startretries > > (eg. ) gives you a decent amount of infinite... > > oh -- startretries is something i can set in the conf file? i thought > it was an internal parameter of some sort. where can i find a full > list of the settable values? i would have expected it to be in the > man page. the backoff sequence is also not specified -- will the > delay interval eventually stop growing? > > thanks, > paul > > > > On Fri, 2 Dec 2016 at 16:10, Paul Fox wrote: > > > > > is there a way to get supervisor to attempt restarting a process > > > forever, at some low rate? > > > > > > i have some services that rely on USB hardware. when they start, they > > > detect the hardware and continue, else the exit. i'd like them retry > > > once in a while, forever, in case the hardware has been inserted. > > > > > > as far as i can tell from the man page, once "startretries" (which > > > undefined in the man page, but appears to be "4") have been attempted, > > > the process is never tried again. > > > > > > is my only recourse to run a cron job to do a "supervisorctl start > jobname" > > > every minute or two? > > > > > > paul > > > =-- > > > paul fox, p...@foxharp.boston.ma.us (arlington, ma, where it's 44.6 > > > degrees) > > > > > > ___ > > > Supervisor-users mailing list > > > Supervisor-users@lists.supervisord.org > > > https://lists.supervisord.org/mailman/listinfo/supervisor-users > > > > > > =-- > paul fox, p...@foxharp.boston.ma.us (arlington, ma, where it's 45.0 > degrees) > > ___ > Supervisor-users mailing list > Supervisor-users@lists.supervisord.org > https://lists.supervisord.org/mailman/listinfo/supervisor-users > ___ Supervisor-users mailing list Supervisor-users@lists.supervisord.org https://lists.supervisord.org/mailman/listinfo/supervisor-users
[Supervisor-users] infinite startup retries?
is there a way to get supervisor to attempt restarting a process forever, at some low rate? i have some services that rely on USB hardware. when they start, they detect the hardware and continue, else the exit. i'd like them retry once in a while, forever, in case the hardware has been inserted. as far as i can tell from the man page, once "startretries" (which undefined in the man page, but appears to be "4") have been attempted, the process is never tried again. is my only recourse to run a cron job to do a "supervisorctl start jobname" every minute or two? paul =-- paul fox, p...@foxharp.boston.ma.us (arlington, ma, where it's 44.6 degrees) ___ Supervisor-users mailing list Supervisor-users@lists.supervisord.org https://lists.supervisord.org/mailman/listinfo/supervisor-users