Vladtn
Vladtn

Reputation: 2594

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.

Upvotes: 2

Views: 13048

Answers (1)

Alex Grönholm
Alex Grönholm

Reputation: 5901

Was this not good enough?

Also, the state variable has been documented here.

Upvotes: 4

Related Questions