mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-26 07:25:56 +03:00
[PR #926] [MERGED] Call all context cancelFunc in processor.go #920
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#920
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/926
Author: @pior
Created: 10/25/2024
Status: ✅ Merged
Merged: 10/26/2024
Merged by: @kamikazechaser
Base:
master← Head:cancel-context📝 Commits (1)
96c3117Call all context cancelFunc in processor📊 Changes
1 file changed (+10 additions, -5 deletions)
View changed files
📝
processor.go(+10 -5)📄 Description
Context
Similar change as https://github.com/hibiken/asynq/pull/145
We are potentially leaking context goroutines in requeue(), markAsComplete(), markAsDone(), retry(), archive() methods.
Those methods are not doing anything weird with the context, they are simply calling
r.runScript(ctx, ...), we can safely cancel this context as usual.Changes
defer cancel()🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.