From 98a2d6551c264b28347df7d79ac0c3b0a7d3a73e Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 28 Apr 2022 07:18:02 +0200 Subject: [PATCH] Fixed calls in job --- src/timeloop/job.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/timeloop/job.py b/src/timeloop/job.py index 0c0681c..5c32fdd 100644 --- a/src/timeloop/job.py +++ b/src/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)