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

Multiple improvements to "plz watch" and "plz run". #600

Merged
merged 1 commit into from
Apr 20, 2019

Conversation

katzdm
Copy link
Contributor

@katzdm katzdm commented Apr 18, 2019

  • Kill all targets started with Parallel or Sequential (including watch --run) on SIGINT
  • Don't block "watch" on running targets. Instead, restart targets on notification

This is a follow-up on #599.

@katzdm katzdm force-pushed the watch-servers branch 3 times, most recently from fd40a1b to a537807 Compare April 18, 2019 20:33
@katzdm
Copy link
Contributor Author

katzdm commented Apr 19, 2019

@peterebden I saw you aimed for a similar class of fixes with 594a0e - There are some issues with the approach there; I left a comment on the commit. Going to keep this open for the time being, just until we have that worked out.

@peterebden
Copy link
Member

Sorry, I missed this one! Will follow up on the commit thread.

katzdm referenced this pull request Apr 19, 2019
Interestingly they now seem to be getting a SIGINT when I ctrl+c the parent, although I haven't done anything explicit to handle that?
- Create a parent context above all target-contexts; cancel it on SIGINT
- Launch a goroutine to watch for ctx.Done() for each target started.
Kill its process-group when it happens.
@peterebden
Copy link
Member

Nice, I like it!

@peterebden peterebden merged commit a3d082d into thought-machine:master Apr 20, 2019
@katzdm katzdm deleted the watch-servers branch April 20, 2019 13:54
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