You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
372 B

#!/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