Changes

Jump to: navigation, search

Sheriffing/How To/Helpers

1,369 bytes added, 13:35, 5 March 2020
add mass cancellation script
{{Sheriffing How To|Helpers}}
= Command Line =
 
== Terminating many tasks from the command line ==
If many tasks need to be terminated, e.g. because there is a backlog of gecko-decision-task (and canceling them from Treeherder also uses gecko-decision-task), this can be done with the taskcluster command line client like this:
* Run <code>export TASKCLUSTER_ROOT_URL=https://firefox-ci-tc.services.mozilla.com</code>
* Sign in: <code>eval `taskcluster signin`</code>
* Log in in the browser, close the browser after you clicked 'Create Client'.
* Get the list of taskcluster task ids which need to be terminated, e.g. from https://sql.telemetry.mozilla.org (create query, run it, download result as .csv file).
* In a text editor, create a line for each task like <code>taskcluster task cancel GcyOUlbLQhGSy4LU3paGTA</code> with <code>GcyOUlbLQhGSy4LU3paGTA</code> replaced by the task id. E.g. in Notepad++, paste the task ids, select the position left of the first character for each line by positioning the cursor at the start of the file and then selecting the positions with Alt + Shift + click into the first position of the last line and then typing <code>taskcluster task cancel </code>.
* Save the content as <code>cancel.sh</code> file.
* Set it as executable with <code>chmod +x cancel.sh</code>.
* Run it with <code>./cancel.sh</code>.
Successful cancellations are indicated by `exception 'canceled'`.
 
== mach file-info bugzilla-component lookup shortcut (mfi) ==
Confirm
572
edits

Navigation menu