From fc07acb3b61ff4d9df5ec1a7df58a84b0780387b Mon Sep 17 00:00:00 2001 From: Anze Date: Thu, 9 Apr 2020 22:07:09 +0200 Subject: [PATCH] Make max_instances higher to avoid jobes being skipped --- grafoleancollector/collector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grafoleancollector/collector.py b/grafoleancollector/collector.py index 555209c..014ce87 100644 --- a/grafoleancollector/collector.py +++ b/grafoleancollector/collector.py @@ -347,7 +347,7 @@ def execute(self): # initialize APScheduler: job_defaults = { 'coalesce': True, # if multiple jobs "misfire", re-run only one instance of a missed job - 'max_instances': 1, + 'max_instances': 100, # temporarily set to high value until we figure out how to better deal with this } self.scheduler = BackgroundScheduler(job_defaults=job_defaults, timezone=utc) self.scheduler.add_executor(IntervalsAwareProcessPoolExecutor(10), 'iaexecutor')