Search code examples
pythonapscheduler

How to check if apscheduler is running in the background


I have a button that sends:

scheduler.start()

and would like to check whether it is running already to avoid SchedulerAlreadyRunningError

It seems simple enough but couldn't find a status flag in the documentation.


Solution

  • Was this not good enough?

    Also, the state variable has been documented here.