I like that approach.  My subprocess is a hacked up version of memmon,
so it shouldn't be an issue :)

Thanks!

On Thu, May 6, 2010 at 5:02 PM, Mike Naberezny <[email protected]> wrote:
> 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
> [email protected]
> http://lists.supervisord.org/mailman/listinfo/supervisor-users
>



-- 
Benjamin Smith
http://just-another.net
http://twitter.com/benjaminws
http://www.linkedin.com/in/benjaminwarfield
_______________________________________________
Supervisor-users mailing list
[email protected]
http://lists.supervisord.org/mailman/listinfo/supervisor-users

Reply via email to