From 65bb8909cd3453f8cd9554b8dd35794c78bbaf9f Mon Sep 17 00:00:00 2001 From: Damian Borowiecki Date: Mon, 24 Jun 2024 14:16:51 +0200 Subject: [PATCH] Changed the scheduler execution method --- sigeca_data_import_microservice/app/application/scheduler.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sigeca_data_import_microservice/app/application/scheduler.py b/sigeca_data_import_microservice/app/application/scheduler.py index 18f846b..8003d31 100644 --- a/sigeca_data_import_microservice/app/application/scheduler.py +++ b/sigeca_data_import_microservice/app/application/scheduler.py @@ -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 )