def check_if_parent_is_alive(self):
        try:
            kill(self.parent_pid, 0)
        except:
            exit(0)
Self explanatory.
dataset/ETHPy150Open etsy/skyline/src/horizon/worker.py/Worker.check_if_parent_is_alive