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):
if self.offset:
sleep(self.offset.total_seconds())
self.execute(*self.args, **self.kwargs)
while not self.stopped.wait(self.interval.total_seconds()):
self.execute(*self.args, **self.kwargs)