Skip to content

How to properly stop worker on error #1899

Answered by rustatian
VojtechBuba asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @VojtechBuba 👋
You may just exit the while loop.
Continue needed to properly handle the internal signal from RR to gracefully stop that worker. After you send a stop, RR sends a SIGINT to the worker. So, if the worker is already dead (you used a return), RR will spam you an additional log, that it can't gracefully stop that worker. So, that is up to you. Anyway, RR will recreate the worker without any problems.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@VojtechBuba
Comment options

Answer selected by VojtechBuba
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants