How to identify APScheduler work orders?

I have some recurring assignments that are often completed or take some time. It looks like Scheduler (). Get_jobs () will return a list of scheduled tasks that are currently not running, so I canโ€™t determine if working with a specific identifier is working or is actually working.

How to check if the work works in this situation?

(I installed these tasks in an unusual way (because I need them to run in an arbitrary interval rather than a fixed interval), these are tasks that are executed only once, but will add a task with the same identifier as the end of their execution, and they stop doing this after reaching a certain threshold.)

+5
source share
1 answer

APScheduler does not filter the job list for get_jobs() . If you need random scheduling, why not implement this in a custom trigger instead of reading the job all the time?

+3
source

Source: https://habr.com/ru/post/1215275/


All Articles