apscheduler - multiple instances
问题 I have apscheduler running in django and it appears to work ... okay. In my project init .py, I initialize the scheduler: scheduler = Scheduler(daemon=True) print("\n\n\n\n\n\n\n\nstarting scheduler") scheduler.configure({'apscheduler.jobstores.file.class': settings.APSCHEDULER['jobstores.file.class']}) scheduler.start() atexit.register(lambda: scheduler.shutdown(wait=False)) The first problem with this is that the print shows this code is executed twice. Secondly, in other applications, I'd