Message78540
def run(self):
self.finished.wait(self.interval)
if not self.finished.isSet():
self.function(*self.args, **self.kwargs)
self.finished.set()
I think the function run() should be modified to like this below:
def run(self):
while not self.finished.isSet():
self.finished.wait(self.interval)
self.function(*self.args, **self.kwargs)
In this case, it can still run on next 'interval', and next's next... |
|
Date |
User |
Action |
Args |
2008-12-30 15:44:02 | gestapo21th | set | recipients:
+ gestapo21th |
2008-12-30 15:44:01 | gestapo21th | set | messageid: <1230651841.99.0.415726342941.issue4781@psf.upfronthosting.co.za> |
2008-12-30 15:44:01 | gestapo21th | link | issue4781 messages |
2008-12-30 15:44:00 | gestapo21th | create | |
|