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
Is there any way to deduplicate events being pushed to the queue? I've found some dedup ocurrences but I'm not yet clear if this can be used from the client side? I have a protection mechanism for double task execution for same inputs but am looking if it could be handled on the Hatchet level when adding items.
Best regards
The text was updated successfully, but these errors were encountered:
Hi @1am, this can be set from the client side by added a key called dedupe to the additional metadata of the workflow, and then setting the value to the field you'd like to dedupe on.
We're working on exposing this as a better deduplication API (including a count for the # of occurrences) using expression-based syntax parsing for deduplication keys. Will share an update here when we tackle that.
Thank you @abelanger5 This sounds great but I can't seem to find how to specify dedup in metadata of the workflow when using RegisterWorkflow. I've started with similar approach as in in examples/simple/main.go Could you point me to how to call createNewWorkflowRun which seems to deal with dedupe key?
Hello,
Is there any way to deduplicate events being pushed to the queue? I've found some dedup ocurrences but I'm not yet clear if this can be used from the client side? I have a protection mechanism for double task execution for same inputs but am looking if it could be handled on the Hatchet level when adding items.
Best regards
The text was updated successfully, but these errors were encountered: