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

PoolBehavior does not add restarted process to pool.monitors #171

Open
fikomore opened this issue Jan 2, 2024 · 1 comment
Open

PoolBehavior does not add restarted process to pool.monitors #171

fikomore opened this issue Jan 2, 2024 · 1 comment

Comments

@fikomore
Copy link

fikomore commented Jan 2, 2024

Describe the bug
When child process of Pool process is restarted with call process.Exit("restart") (for the first time it is restarted as expected) it is deleted from pool.monitors but the new child is not added to pool.monitors so when process.Exit("restart") is called the child process is not restarted.

To Reproduce
Steps to reproduce the behavior:

  1. Create a pool with eg. 1 worker
  2. call process.Exit("restart") from child process
  3. When process is restarted call process.Exit("restart") again
  4. process is not restarted

Expected behavior
After each call process.Exit("restart") the process should be restarted

Environment (please complete the following information):

  • Arch: x86_64
  • OS: Linux
  • Framework Version: 2.2.4
@fikomore
Copy link
Author

fikomore commented Jan 2, 2024

This should fix the issue
Screenshot from 2024-01-02 23-02-11

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

No branches or pull requests

1 participant