mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-26 07:25:56 +03:00
[GH-ISSUE #911] [QUESTION] How to handle shutdowns/restarts with systemctl #456
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#456
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 @arjendevos on GitHub (Aug 28, 2024).
Original GitHub issue: https://github.com/hibiken/asynq/issues/911
In production we compile to a single go binary and run it through systemctl. However restarts/stop don't work as they hang forever. I know we have to use kill -TERM etc but we don't know the in our CI?
Is there any docs or examples for an use-case like this?
EDIT:
I now have this:
I get these logs:
However it seems to hang on Exiting and it never completes?
@arjendevos commented on GitHub (Aug 28, 2024):
Oke found the issue, I was running it in a goroutine. Makes sense now I think about it. Changing it to the main thread fixed everything.