Skip to content

Commit

Permalink
Merge pull request #5 from OpenLMIS-Angola/hotfix/scheduler_interval
Browse files Browse the repository at this point in the history
Changed the scheduler execution method
  • Loading branch information
malinowskikam committed Jun 24, 2024
2 parents 6581f1a + 65bb890 commit 48eb9fe
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ def __init__(
self.scheduler = BlockingScheduler()

def start(self):
self.run_sync() # Sync immedietly don't wait the interval for first trigger
self.scheduler.add_job(
self.run_sync, "interval", minutes=self.sync_interval_minutes
)
Expand Down

0 comments on commit 48eb9fe

Please sign in to comment.