diff --git a/timeloop/job.py b/timeloop/job.py index 0c0681c..5c32fdd 100644 --- a/timeloop/job.py +++ b/timeloop/job.py @@ -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)