@memoized
    def get_pillow_process_info(self, pillow_name):
        process_info = [
            info for info in self.get_all_process_info()
            if pillow_name in info.name
        ]
        try:
            return process_info[0]
        except IndexError:
            raise SupervisorException('Process not found for pillow: {}'.format(pillow_name))
dataset/ETHPy150Open dimagi/commcare-hq/corehq/util/supervisord/api.py/PillowtopSupervisorApi.get_pillow_process_info/original