This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author julian
Recipients julian
Date 2014-01-05.03:00:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1388890823.36.0.322424274213.issue20126@psf.upfronthosting.co.za>
In-reply-to
Content
Events added after the scheduler is running, with a delay value before the next event, do not run at the correct time.

import sched
import time
import threading

def event( eventNum ):
	print( 'event', eventNum, time.time() )

s = sched.scheduler()
s.enter( 0,1,event, (0,) )
s.enter(10,1,event, (1,) )
t = threading.Thread( target = s.run )
t.start()
s.enter( 5,1,event, (2,) )


OUTPUT
event 0 1388890197.7716181
event 2 1388890207.7340584
event 1 1388890207.7347224
History
Date User Action Args
2014-01-05 03:00:23juliansetrecipients: + julian
2014-01-05 03:00:23juliansetmessageid: <1388890823.36.0.322424274213.issue20126@psf.upfronthosting.co.za>
2014-01-05 03:00:23julianlinkissue20126 messages
2014-01-05 03:00:23juliancreate