Checklist
Steps to reproduce
Have a Service with a canceled background task wrapped into Worker:
class Api(mode.Service):
@mode.Service.task
def main(self) -> None:
raise asyncio.CancelledError()
if __name__ == '__main__':
mode.Worker(Api()).execute_from_command_line()
Expected behavior
A task's CancelledError can be propagated to the worker.
Actual behavior
An application seems stuck and unresponsive.
Full traceback
Paste the full traceback (if there is any)
Versions
- Python version: 3.7.5
- Mode version: 4.1.2
- Operating system: Debian-based official Python 3.7 image
Checklist
masterbranch of Mode.Steps to reproduce
Have a
Servicewith a canceled background task wrapped intoWorker:Expected behavior
A task's
CancelledErrorcan be propagated to the worker.Actual behavior
An application seems stuck and unresponsive.
Full traceback
Versions