def kill(pid_file):
    try:
        with open(pid_file) as f:
            os.kill(int(f.read()), 9)
        os.remove(pid_file)
    except (IOError, OSError):
        return False
    return True
Rate limit the request.
dataset/ETHPy150Open stephenmcd/gnotty/gnotty/server.py/kill--crossover with--dataset/ETHPy150Open nii-cloud/dodai-compute/nova/api/openstack/ratelimiting/__init__.py/RateLimitingMiddleware.__call__