Skip to content

Commit fc07acb

Browse files
author
Anze
committed
Make max_instances higher to avoid jobes being skipped
1 parent 632c68b commit fc07acb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grafoleancollector/collector.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ def execute(self):
347347
# initialize APScheduler:
348348
job_defaults = {
349349
'coalesce': True, # if multiple jobs "misfire", re-run only one instance of a missed job
350-
'max_instances': 1,
350+
'max_instances': 100, # temporarily set to high value until we figure out how to better deal with this
351351
}
352352
self.scheduler = BackgroundScheduler(job_defaults=job_defaults, timezone=utc)
353353
self.scheduler.add_executor(IntervalsAwareProcessPoolExecutor(10), 'iaexecutor')

0 commit comments

Comments
 (0)