eclipse / streamsheets

An open-source tool for processing stream data using a spreadsheet-like interface.
https://docs.cedalo.com/
Eclipse Public License 2.0
452 stars 53 forks source link

fix stuck processes when terminating #63

Closed ctron closed 3 years ago

ctron commented 3 years ago

Terminating a process with Ctrl-C or SIGTERM in Kubernetes leaves the process stuck. This change fixes the issue, by calling the stop() method on the services and then exiting the process.

This fixes both the behavior of having a stuck container, when pressing Ctrl-C, as well as pods which remain in the termination state until Kubernetes uses more force to kill the pods.