run_until_complete fails even after loop has been stopped – Debian
Im trying to write a SIGTERM-handler that will have my run_forever()-loop Stop accepting new tasks. Complete running tasks. Shutdown. Here is a learning-demo I wrote: import asyncio import signal import logging logging.basicConfig(level=logging.INFO, format='%(asctime)s %(levelname)s [%(name)s]: %(message)s', datefmt='%H:%M:%S') _log = logging.getLogger(__name__)…