mirror of
https://github.com/hibiken/asynq.git
synced 2025-08-19 15:08:55 +08:00
(fix): Clear unique lock when task is deleted via Inspector
This commit is contained in:
@@ -170,6 +170,7 @@ func SchedulerHistoryKey(entryID string) string {
|
||||
}
|
||||
|
||||
// UniqueKey returns a redis key with the given type, payload, and queue name.
|
||||
// FIXME: We probably need to generate a hash of payload to make this key unique
|
||||
func UniqueKey(qname, tasktype string, payload []byte) string {
|
||||
return fmt.Sprintf("%sunique:%s:%s", QueueKeyPrefix(qname), tasktype, string(payload))
|
||||
}
|
||||
|
Reference in New Issue
Block a user