Relative Content

Tag Archive for python-3.xapscheduler

APScheduler scheduler.shutdown(wait=True) not waiting for background tasks to complete

I am creating 2 background schedulers, after the tasks on both the schedulers are started, I am calling scheduler.shutdown(wait=True) but it is not waiting for the tasks to complete, I got around this by having a while loop which check pending jobs using scheduler.get_jobs(), but reading the documentation it should not be required because shutdown(wait=True) is for this purpose, or did I read it wrong.