Skip to content

Services: Handle more starting/stopping scenarios - #486

Merged
aomarks merged 2 commits into
servicefrom
service.9
Oct 28, 2022
Merged

Services: Handle more starting/stopping scenarios#486
aomarks merged 2 commits into
servicefrom
service.9

Conversation

@aomarks

@aomarks aomarks commented Oct 28, 2022

Copy link
Copy Markdown
Member
  • Directly invoked scripts now start up immediately, and shut down when wireit receives SIGINT.

  • All services now shut down whenever an error occurs anywhere in the graph, regardless of the FAILURE_MODE ("continue" | "no-new" | "kill").

  • Services start up in bottom-up order, and stop in top-down order. We stop in top-down order so that if exiting gracefully requires interacting with another service you depend on, that will be reliable.

  • Updated the test rig so that we can get a notification of when a child process receives SIGINT, instead of always exiting. This lets us control how long it takes for a child to exit after it has been killed, so that we can better validate the order that services stop.

Part of #33

@aomarks
aomarks requested a review from justinfagnani October 28, 2022 02:01
@aomarks
aomarks merged commit 822a5a3 into service Oct 28, 2022
@aomarks
aomarks deleted the service.9 branch October 28, 2022 20:30
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.

2 participants