Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add worker process guard. #2020

Closed

Conversation

CrazyWolf2014
Copy link

@CrazyWolf2014 CrazyWolf2014 commented Jun 28, 2023

Summary

In some cases, the worker thread cannot be automatically restarted after the exception ends, resulting in the inability to provide services normally. You need to end the main process each time and restart it. To solve this problem, add worker process state detection to the main thread. If the worker process is dead, a new worker process is recreated.

Checklist

  • [*] I understand that this PR may be closed in case there was no previous discussion. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.

@zanieb
Copy link

zanieb commented Jun 28, 2023

This looks like a duplicate of #1942; you may want to read the discussion there.

@CrazyWolf2014
Copy link
Author

okay

@Kludex
Copy link
Member

Kludex commented Jul 10, 2023

This looks like a duplicate of #1942; you may want to read the discussion there.

Yeah, let's continue there.

Thanks for the PR @CrazyWolf2014 :)

@Kludex Kludex closed this Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants