Comment on the apscheduler event loop hack

This commit is contained in:
Jake Howard 2019-02-14 20:16:48 +00:00
parent 19ad84414a
commit bb6f3375eb
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -14,6 +14,7 @@ def main():
server = get_server() server = get_server()
scheduler = create_scheduler() scheduler = create_scheduler()
# HACK: APScheduler doesn't like running in an external event loop. https://github.com/agronholm/apscheduler/issues/360
Process(target=run_web_app, args=(server,)).start() Process(target=run_web_app, args=(server,)).start()
Process(target=start_scheduler, args=(scheduler,)).start() Process(target=start_scheduler, args=(scheduler,)).start()