Services throwing exceptions may exit with exit code 0 #54
Labels
No labels
bug
confirmed
critical
discussion
documentation
Doing
enhancement
suggestion
support
To Do
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: hazaar/hazaar-warlock#54
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
If a service exits with a code 0, then Warlock thinks that the service actually wants to exit, so it shuts it down, whereas in reality, the service should be restarted. It appears that if the service throws an exception on an event handler, the service will
exit(0)
.What probably should happen is, if the exception occurs in the main process, then restart the service, but if it's an event handler, simply log the error and carry on.
changed milestone to %1
created merge request !26 to address this issue
mentioned in merge request !26
Looks like this was actually hard-coded in. I've removed that and now I'm trying to figure out a nice way of handling exceptions on the main loop so that services don't keep throwing them and filling up the logs. Exiting will allow the service to restart and potentially fix things, otherwise if it's not fixed, warlock will throttle the restarts if they happen too often.
closed via merge request !26
mentioned in commit
f5efe6ff96