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

process-compose doesn't terminate in dependency order #145

Closed
anmonteiro opened this issue Mar 2, 2024 · 0 comments · Fixed by #147
Closed

process-compose doesn't terminate in dependency order #145

anmonteiro opened this issue Mar 2, 2024 · 0 comments · Fixed by #147

Comments

@anmonteiro
Copy link
Contributor

anmonteiro commented Mar 2, 2024

given process B which depends on process A, I would expect the shutdown routine to be somewhat like:

1. shutdown B.
2. wait for the shutdown command to run
3. shutdown A

instead, this is what I see in the logs:

24-03-01 21:18:46.686 DBG terminating zookeeper with timeout 10 ...
24-03-01 21:18:47.749 DBG terminating kafka with timeout 10 ...
24-03-01 21:18:52.871 INF Project completed

even though, in my case, kafka depends on zookeeper, and its shutdown command has sleep 5. I would expect the zookeeper shutdown routine to only finish after those 5 seconds.

  • you can see the 5 second sleep time between "terminating kafka" and "project completed"
  • I would have expected "terminating kafka" to print first, then "terminating zookeeper" printing only after 5 seconds
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 a pull request may close this issue.

1 participant