Hi Benjamin,

On 5/6/10 1:41 PM, Benjamin Smith wrote:
> Any possibility supervisord could allow for custom tick event periods,
> or at least add a few?  It's a pretty big jump from 1 minute to 1 hour
> :).

Rather than add new event types for more intervals, can you keep a small bit 
of state in your eventlistener subprocess?

Subscribe to one TICK_* event and increment a counter each time the event is 
received.  When a certain number of counts have occurred, act and reset the 
count.  This will allow you to achieve any interval you like.

Regards,
Mike

-- 
Mike Naberezny
Maintainable Software
http://maintainable.com
_______________________________________________
Supervisor-users mailing list
Supervisor-users@lists.supervisord.org
http://lists.supervisord.org/mailman/listinfo/supervisor-users

Reply via email to