mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-26 07:25:56 +03:00
[GH-ISSUE #318] [BUG] 用协程同时启动 asynq.Server 和 http.Server 的程序无法用 kill -TERM 结束 #135
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#135
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 @xuyang2 on GitHub (Aug 27, 2021).
Original GitHub issue: https://github.com/hibiken/asynq/issues/318
Originally assigned to: @hibiken on GitHub.
Describe the bug
用协程同时启动 asynq.Server 和 http.Server 的程序无法用 kill -TERM 结束
To Reproduce
Steps to reproduce the behavior (Code snippets if applicable):
然后分别执行
go run main.go
go run main.go -run
Expected behavior
程序都应该能在若干秒后退出
Actual behavior
Environment (please complete the following information):
asynqpackage:421dc584ff@xuyang2 commented on GitHub (Aug 27, 2021):
Server.waitForSignals 现在是
测试发现下面这样的程序也无法 kill -TERM
@xuyang2 commented on GitHub (Aug 27, 2021):
把 server.waitForSignals() 改成下面这样好像就可以 kill -TERM 了
@hibiken commented on GitHub (Nov 9, 2021):
Closing this as I'm unable to read the description (sorry!) :(