Fixed job calls

This commit is contained in:
Maximilian Giller 2022-04-28 07:19:27 +02:00
parent 2af9c8dd87
commit 07aeb8d9bf

View file

@ -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)