cobald.daemon.runners.asyncio_runner module
- class cobald.daemon.runners.asyncio_runner.AsyncioRunner(asyncio_loop: AbstractEventLoop)[source]
Bases:
BaseRunner
Runner for coroutines with
asyncio
All active payloads are actively cancelled when the runner is closed.
- flavour: Any = <module 'asyncio' from '/home/docs/.pyenv/versions/3.7.9/lib/python3.7/asyncio/__init__.py'>
- async manage_payloads()[source]
Implementation of managing payloads when
run()
This method must continuously execute payloads sent to the runner. It may only return when
stop()
is called or if any orphaned payload return or raise. In the latter case,OrphanedReturn
or the raised exception must re-raised by this method.