def kill_args()

in support/retro_contest/rest.py [0:0]


def kill_args(args, server, cookies):
    if not args.yes:
        yn = input('Are you sure? [y/N] ')
        if yn.lower() not in ('y', 'yes'):
            print('Not canceled')
            return True
    r = requests.post(server + '/rest/job/kill', cookies=cookies)
    if r.status_code == 404:
        print('No job found')
        return False
    elif r.status_code // 100 == 2:
        print('Canceled')
    else:
        print('Error %i occurred' % r.status_code)
        return False
    return True