Closed TheArcherST closed 3 months ago
I've figured out that this is more design question than a bug. There is a way to disable error propagation through dependencies. And Receiver.task_run
method's code explicitly defines that error propagation treats requeue in the same way as other exceptions. This code works properly for me if pass kwarg propagate_exceptions=False to InMemoryBroker.
Python version: Python 3.12.2 Taskiq version: 0.11.6
Reproducer
It was expected that the dependency would not change the behavior of the task, but it does.
And, please, add NoReturn typehint to requeue method. Thank you for the project!