2
0
mirror of https://github.com/hibiken/asynq.git synced 2025-08-19 15:08:55 +08:00

Use sync.Once

This commit is contained in:
Ken Hibino
2019-12-17 20:34:56 -08:00
parent c40e779fdb
commit 69b46a7f0d
2 changed files with 11 additions and 22 deletions

View File

@@ -123,6 +123,7 @@ func (r *RDB) Requeue(msg *TaskMessage) error {
if err != nil {
return fmt.Errorf("could not marshal %+v to json: %v", msg, err)
}
// Note: Use RPUSH to push to the head of the queue.
// KEYS[1] -> asynq:in_progress
// KEYS[2] -> asynq:queues:default
// ARGV[1] -> taskMessage value