Fixed calls in job
This commit is contained in:
parent
ece752d643
commit
98a2d6551c
1 changed files with 1 additions and 0 deletions
|
@ -19,6 +19,7 @@ class Job(Thread):
|
||||||
def run(self):
|
def run(self):
|
||||||
if self.offset:
|
if self.offset:
|
||||||
sleep(self.offset.total_seconds())
|
sleep(self.offset.total_seconds())
|
||||||
|
self.execute(*self.args, **self.kwargs)
|
||||||
|
|
||||||
while not self.stopped.wait(self.interval.total_seconds()):
|
while not self.stopped.wait(self.interval.total_seconds()):
|
||||||
self.execute(*self.args, **self.kwargs)
|
self.execute(*self.args, **self.kwargs)
|
||||||
|
|
Loading…
Reference in a new issue