django-apscheduler icon indicating copy to clipboard operation
django-apscheduler copied to clipboard

skipped: maximum number of running instances reached

Open CharlesFr opened this issue 2 years ago • 0 comments

I'm getting the following error which is strange given that I only have it defined once in my code, inside runapscheduler.py.

WARNING apscheduler.scheduler: Execution of job "update_payments (trigger: cron[hour='12'], next run at: 2022-10-09 12:00:00 UTC)" skipped: maximum number of running instances reached (1)

It seems to appear after 7 days of normal operation, and after it happens once it also happens on all my other jobs.

This is where the checks happens, how is it possible that the number of instances is being reached? https://github.com/jcass77/django-apscheduler/blob/a792c1a78881cca8bb38d47767713a74436c3c4a/django_apscheduler/jobstores.py#L57

CharlesFr avatar Oct 09 '22 21:10 CharlesFr