We are using mesos 0.27 to launch Pyspark jobs. These jobs start docker containers to do the processing. Whenever the mesos framework dies prematurely, the docker containers are left running on the machine leading to space and memory issues overtime. I am looking for a solution on how can we get notified on framework shutdown so that we can do proper cleanup of resources.
Regards Sumit Chawla