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