It is the usage of the
shutdown_triggerthat I think is the issue for you. This is set by default to be a signal (Ctrl-C), but as noted this is only works if Quart is run on the main thread. Instead you can specify your own
shutdown_triggerand use the
shutdown_triggershould be an awaitable that is done when you want the app to shutdown.
hello! apologies for poorly phrased questions in advance, i am very new to python frameworks and asyncio!
i am still having a hard time to get this to work -- trying to run a quart app to be used on a website along with bot that runs 24/7 on discord. my understanding is that this run_task() method would be run for the quart app?
scope['query_string']and the headers etc again myself
GitLab? Thanks your help in advance.
RuntimeError: Flask Patching only works with the default event loop policy.