hibiken / asynq

Simple, reliable, and efficient distributed task queue in Go
MIT License
10k stars 714 forks source link

When used together with the grpc service, grpc cannot exit normally. #793

Closed kangbingbing closed 11 months ago

kangbingbing commented 11 months ago

First, I have a grpc service, and then after introducing the asynq library, the use is normal, but when I stop the program, asynq seems to have stopped normally, but the grpc service cannot exit normally. If it is started again, it will prompt the 50001 port is occupied. I have to kill port 50001 before I can start the program again. Have you encountered similar problems again? How to solve them?

kamikazechaser commented 11 months ago

This is a Go related question around correctly setting up signals and goroutines. I suggest asking this in other forums.