F1bonacc1/process-compose

process-compose doesn't terminate in dependency order

Closed this issue · 0 comments

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