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
The worker could use the task-level ack_type when present, and fall back to the worker-level/default ack_type otherwise.
A possible precedence could be:
task-level ack_type
worker-level --ack-type
taskiq default ack behavior
Broker compatibility
I understand that acknowledgement behavior is currently handled by the receiver rather than by the task itself, and that not all brokers support acknowledgements.
So this feature could perhaps apply only to ack-capable brokers, or be validated/ignored depending on broker capabilities.
For example, this would be useful with Redis Streams in taskiq-redis, where acknowledgements are supported.
Question
Would the maintainers be open to supporting per-task ack strategies?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I would like to propose support for configuring the acknowledgement strategy at the task level.
Currently,
ack_typeappears to be configured globally at the worker/receiver level through the CLI, for example:This works well as a global worker policy, but it would be useful if individual tasks could override the ack behavior.
Use case
Different tasks in the same worker may have different reliability requirements.
For example:
when_received.when_executedorwhen_saved.Proposed API
One possible API could be:
Or using an enum:
Expected behavior
The worker could use the task-level
ack_typewhen present, and fall back to the worker-level/defaultack_typeotherwise.A possible precedence could be:
ack_type--ack-typeBroker compatibility
I understand that acknowledgement behavior is currently handled by the receiver rather than by the task itself, and that not all brokers support acknowledgements.
So this feature could perhaps apply only to ack-capable brokers, or be validated/ignored depending on broker capabilities.
For example, this would be useful with Redis Streams in
taskiq-redis, where acknowledgements are supported.Question
Would the maintainers be open to supporting per-task ack strategies?
Beta Was this translation helpful? Give feedback.
All reactions