[PR #66] [MERGED] Fix Requeue and RestoreUnfinished #580

Closed
opened 2026-03-02 05:54:07 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hibiken/asynq/pull/66
Author: @hibiken
Created: 1/26/2020
Status: Merged
Merged: 1/27/2020
Merged by: @hibiken

Base: masterHead: fix/requeue


📝 Commits (2)

  • 787b8be (fix): Requeue to select correct queue
  • f433095 (fix): RestoreUnfinished to select correct queue

📊 Changes

3 files changed (+104 additions, -38 deletions)

View changed files

📝 CHANGELOG.md (+4 -0)
📝 internal/rdb/rdb.go (+9 -6)
📝 internal/rdb/rdb_test.go (+91 -32)

📄 Description

Requeue and RestoreUnfinished operation were pushing all tasks back to "default" queue.
This PR fixes this by looking at "Queue" field in task message and select correct queue to push the task.


🔄 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/66 **Author:** [@hibiken](https://github.com/hibiken) **Created:** 1/26/2020 **Status:** ✅ Merged **Merged:** 1/27/2020 **Merged by:** [@hibiken](https://github.com/hibiken) **Base:** `master` ← **Head:** `fix/requeue` --- ### 📝 Commits (2) - [`787b8be`](https://github.com/hibiken/asynq/commit/787b8bec5ac3969a857ccf3d7f341e79d46d8c96) (fix): Requeue to select correct queue - [`f433095`](https://github.com/hibiken/asynq/commit/f4330955460155bf8783e00c9bb34cc38cc085a8) (fix): RestoreUnfinished to select correct queue ### 📊 Changes **3 files changed** (+104 additions, -38 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+4 -0) 📝 `internal/rdb/rdb.go` (+9 -6) 📝 `internal/rdb/rdb_test.go` (+91 -32) </details> ### 📄 Description `Requeue` and `RestoreUnfinished` operation were pushing all tasks back to "default" queue. This PR fixes this by looking at "Queue" field in task message and select correct queue to push the task. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 05:54:07 +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#580
No description provided.