fix BackgroundScheduler job not being executed

This commit is contained in:
gitee-yzh 2022-04-02 06:27:01 +00:00 committed by Gitee
parent 140152a355
commit b4cf2206a5
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 5 additions and 1 deletions

View File

@ -19,7 +19,11 @@ from lib.ssh import SSH
logger = logging.getLogger(__name__)
job_defaults = {'max_instances': 10}
job_defaults = {
'max_instances': 10,
'misfire_grace_time': None,
'coalesce': True,
}
scheduler = BackgroundScheduler(job_defaults=job_defaults)
scheduler.start()