-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
handle_exit
called with missing starter
causes a crash
#67
Comments
Thank you. |
FYI, I have a regular error on Gloogle due to this error, because I'm exiting normally some children. That triggers server to restart. It's not a big deal at the moment, but it's bothering enough I'd like to fix it. Are you interested in some PR @lpil ? In case you are, do you have some opinions or some hints to get started on the subject? |
PRs welcome but I've not investigated this. |
I think I understood why it's happening: I'm using a supervisor to start fire & forget tasks. In Gloogle, when I want to extract signatures, I'm spawning a process to do it in an async way, but I'm starting it within a supervisor. So when it shutdown, there's no other children to start, because it's supposed to stop. Am I right to say that every supervisor children processes should be thought as long running processes, that restart automatically? |
No, it would depend on what supervisor you are using and how it has been configured. |
Creating an issue for this problem discussed in the Discord.
It's possible for the
handle_exit
function in the supervisor module to be called with state that is missing thestarter.exec
function.This causes the following error due to this
let assert
Unfortunately I do not have a way to reproduce at the moment and I'm unsure as to the exact details that cause the none value.
The text was updated successfully, but these errors were encountered: