blob: 560b82f7bdc09f4c897a5dc51d5b197eeef6ba2c [file] [log] [blame]
Kevin Chengd802d052017-05-16 09:42:57 -07001#!/usr/bin/env python2
2# A utility script used to abort jobs.
3#
4# Usage:
5# ./abort_job job_id1 job_id2 ...
6
7import sys
8
9import common
10
11from autotest_lib.server.cros.dynamic_suite import frontend_wrappers
12
13afe = frontend_wrappers.RetryingAFE(timeout_min=5, delay_sec=10)
14jobs_to_abort = sys.argv[1:]
15afe.abort_jobs(jobs_to_abort)
16print 'jobs aborted: %s' % jobs_to_abort