Skip to content

Commit

Permalink
Make max_instances higher to avoid jobes being skipped
Browse files Browse the repository at this point in the history
  • Loading branch information
Anze committed Apr 9, 2020
1 parent 632c68b commit fc07acb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grafoleancollector/collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit fc07acb

Please sign in to comment.