mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-26 07:25:56 +03:00
[GH-ISSUE #227] [QUESTION] Is it possible to restart servers or workers when shutdown or killed or exited due to some error? #1099
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#1099
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?
Originally created by @sujit-baniya on GitHub (Jan 15, 2021).
Original GitHub issue: https://github.com/hibiken/asynq/issues/227
Originally assigned to: @hibiken on GitHub.
It's possible that when servers or workers doing their work, it's possible that they are down unintentionally (Killed or Exited).
Can we automatically start such servers or workers and start consuming from where it left?
@hibiken commented on GitHub (Jan 17, 2021):
If a process gets killed forcefully (e.g.
kill -9), the tasks will be processed again (i.e. retried) when you restart the process.That's why your
Handler.ProcessTaskneed to be idempotent` because Asynq server will retry any failed tasks.It's your Handler's job to skip some operations if you want logic such that it'll resume from where it left off.