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