Fixed calls in job

This commit is contained in:
Maximilian Giller 2022-04-28 07:18:02 +02:00
parent ece752d643
commit 98a2d6551c

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)