[PR #407] [CLOSED] add UniqueKey option to extend Unique's behaviour #2757

Closed
opened 2026-03-15 21:01:47 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hibiken/asynq/pull/407
Author: @benjajaja
Created: 2/24/2022
Status: Closed

Base: masterHead: uniquekey


📝 Commits (1)

  • 0fd8262 add UniqueKey option to extend Unique's behaviour

📊 Changes

1 file changed (+19 additions, -1 deletions)

View changed files

📝 client.go (+19 -1)

📄 Description

Instead of (queue, type, payload) use any custom key. This allows to
enforce unique tasks not limited to same payload and/or type.

Tested with --redis_cluster flag.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hibiken/asynq/pull/407 **Author:** [@benjajaja](https://github.com/benjajaja) **Created:** 2/24/2022 **Status:** ❌ Closed **Base:** `master` ← **Head:** `uniquekey` --- ### 📝 Commits (1) - [`0fd8262`](https://github.com/hibiken/asynq/commit/0fd8262f24517109e78793a660d9eb3de310718e) add UniqueKey option to extend Unique's behaviour ### 📊 Changes **1 file changed** (+19 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `client.go` (+19 -1) </details> ### 📄 Description Instead of (queue, type, payload) use any custom key. This allows to enforce unique tasks not limited to same payload and/or type. Tested with `--redis_cluster` flag. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-15 21:01:47 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asynq#2757
No description provided.