mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-25 23:15:51 +03:00
[PR #1] [MERGED] Rescue dead "In Progress" tasks #1541
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#1541
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/1
Author: @hibiken
Created: 11/23/2019
Status: ✅ Merged
Merged: 11/23/2019
Merged by: @hibiken
Base:
master← Head:feature/simple_rescue📝 Commits (4)
3fa867bRemove per task heartbeat76ceb28Change the direction of list push/pop operations4a32793Use command BRPUSHLPOP to move from queue to in_progress in redisfd80126Add logic to restore unfinished tasks back into the default queue if📊 Changes
3 files changed (+95 additions, -80 deletions)
View changed files
📝
processor.go(+16 -24)📝
rdb.go(+30 -41)📝
rdb_test.go(+49 -15)📄 Description
Changes made:
This change makes the system more resilient. It prevents data loss in case there's a server crash while workers are still working on a task or a task is waiting for an available worker.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.