wiremind / remoulade

A fast and reliable distributed task processing library for Python 3.
GNU Lesser General Public License v3.0
39 stars 16 forks source link

Allow args/kwargs for on_failure hook #321

Closed thomasLeMeur closed 1 year ago

thomasLeMeur commented 1 year ago

Today, we can add on_failure hook at message level. But this hook will only receive failed messages info (actor name, actor args, etc.).

For complex on_failure process, it will be nice to allow user to add args/kwargs to on_failure message (to give context data for example).

thomasLeMeur commented 1 year ago

Ok, my bad. kwargs is given to on_failure actor.