mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-26 15:35:55 +03:00
[PR #80] [MERGED] Add cancel command to the CLI #591
Labels
No labels
CLI
bug
designing
documentation
duplicate
enhancement
good first issue
good first issue
help wanted
idea
invalid
investigate
needs-more-info
performance
pr-welcome
pull-request
question
wontfix
work in progress
work in progress
work-around-available
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/asynq#591
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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:
next← Head:feature/cancel📝 Commits (2)
d20b4b5Add redis pubsub subscriber for cancelation5c98b1aAdd 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.