[Twisted-Python] How Twisted is This?

Matthias Urlichs smurf at smurf.noris.de
Wed Jul 16 11:47:05 EDT 2003


Hi, Brad Bollenbach wrote:

> I write a "monicron". monicron wakes up every five minutes and asks the
> system "are there any monitors that need to be performed right now?" The
> answer will either be "Yes, here's the monitors that need to be
> performed right now" or "No".

Why don't you write a function that finds the earliest monitor job which
needs to run next, and delay for exactly that amount?

-- 
Matthias Urlichs   |   {M:U} IT Design @ m-u-it.de   |  smurf at smurf.noris.de
Disclaimer: The quote was selected randomly. Really. | http://smurf.noris.de
-- 
Nice guys finish last.
		-- Leo Durocher





More information about the Twisted-Python mailing list