[PR #80] [MERGED] Add cancel command to the CLI #591

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

📋 Pull Request Information

Original PR: https://github.com/hibiken/asynq/pull/80
Author: @hibiken
Created: 2/13/2020
Status: Merged
Merged: 2/13/2020
Merged by: @hibiken

Base: nextHead: feature/cancel


📝 Commits (2)

  • d20b4b5 Add redis pubsub subscriber for cancelation
  • 5c98b1a Add cancel command to asynqmon cli

📊 Changes

8 files changed (+255 additions, -26 deletions)

View changed files

📝 background.go (+7 -1)
📝 internal/base/base.go (+49 -0)
📝 internal/rdb/rdb.go (+16 -0)
📝 processor.go (+7 -21)
📝 processor_test.go (+8 -4)
subscriber.go (+58 -0)
subscriber_test.go (+57 -0)
tools/asynqmon/cmd/cancel.go (+53 -0)

📄 Description

asynqmon cancel [task ID] will send a cancelation signal to the goroutine processing the specified task.

Handler implementation needs to be context aware in order to cancel command to stop the processing.


🔄 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/80 **Author:** [@hibiken](https://github.com/hibiken) **Created:** 2/13/2020 **Status:** ✅ Merged **Merged:** 2/13/2020 **Merged by:** [@hibiken](https://github.com/hibiken) **Base:** `next` ← **Head:** `feature/cancel` --- ### 📝 Commits (2) - [`d20b4b5`](https://github.com/hibiken/asynq/commit/d20b4b569a63b68de188fddd31d0601ae26c7f22) Add redis pubsub subscriber for cancelation - [`5c98b1a`](https://github.com/hibiken/asynq/commit/5c98b1ad5eb187618e02d4a1f8efbc47182183be) Add cancel command to asynqmon cli ### 📊 Changes **8 files changed** (+255 additions, -26 deletions) <details> <summary>View changed files</summary> 📝 `background.go` (+7 -1) 📝 `internal/base/base.go` (+49 -0) 📝 `internal/rdb/rdb.go` (+16 -0) 📝 `processor.go` (+7 -21) 📝 `processor_test.go` (+8 -4) ➕ `subscriber.go` (+58 -0) ➕ `subscriber_test.go` (+57 -0) ➕ `tools/asynqmon/cmd/cancel.go` (+53 -0) </details> ### 📄 Description `asynqmon cancel [task ID]` will send a cancelation signal to the goroutine processing the specified task. Handler implementation needs to be context aware in order to cancel command to stop the processing. --- <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:11 +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#591
No description provided.