You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Switch rabbitmq message nacks for rejections (#266)
A way to resolve the rabbitmq infinite loops we have been seeing. This creates a new functions based on python-workflows methods to reject messages rather than nack them. Then replaces (almost) all instances of nack with reject.
I'm not certain I've got every requeue choice right but the general policy is:
- requeue=False if the input message is wrong (e.g. missing parameter, malformed directory)
- requeue=True if the failure is external (e.g. failed subprocess call, missing file)
There is a resort back to nacking if not using pika transport, mostly to avoid having to rewrite all the tests
0 commit comments