System is not terminated in scala application in docker on GKE
问题 I have a scala application that uses Akka Streams and running as a cronjob in Google Kubernetes Engine. But the pod is still in the “Running” state (not completed). And the Java process is still running inside the container. Here's what I do exactly: I build the docker image with sbt-native-packager and sbt docker:publish . When the job is done, I terminate it with regular system.terminate call. implicit val system: ActorSystem = ActorSystem("actor-system") /* doing actual stuff */ stream