Skip to content

Instantly share code, notes, and snippets.

@bmbouter
Created November 2, 2016 17:42
Show Gist options
  • Select an option

  • Save bmbouter/22fd445b21fc587dcc4b4d0608d2e561 to your computer and use it in GitHub Desktop.

Select an option

Save bmbouter/22fd445b21fc587dcc4b4d0608d2e561 to your computer and use it in GitHub Desktop.
This gist will cancel all incomplete and unstarted Pulp tasks. This is designed for Pulp 2.y
# This gist will cancel all incomplete and unstarted Pulp 2.y tasks
pulp-admin -u admin -p admin tasks list | grep -ohe '[0-9a-f]\{8\}-[0-9a-f]\{4\}-[0-9a-f]\{4\}-[0-9a-f]\{4\}-[0-9a-f]\{12\}' | sort | uniq | while read uuid ; do
pulp-admin -u admin -p admin tasks cancel --task-id $uuid
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment