

@gen.coroutine
def execute(self, arbiter, props):
    name = props.get('name')
    pid = props.get('pid')
    signum = props.get('signum')
    graceful_timeout = props.get('graceful_timeout')
    watcher = self._get_watcher(arbiter, name)
    processes = watcher.get_active_processes()
    if pid:
        processes = [p for p in processes if (p.pid == pid)]
    if processes:
        (yield [watcher.kill_process(p, stop_signal=signum, graceful_timeout=graceful_timeout) for p in processes])

dataset/ETHPy150Open circus-tent/circus/circus/commands/kill.py Kill.execute/original