Created
February 8, 2018 15:42
-
-
Save mccun934/bcb7110fea3720e30cde98b73ab8447d to your computer and use it in GitHub Desktop.
Common task cleanup commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Delete all paused | |
foreman-rake foreman_tasks:cleanup TASK_SEARCH='label ~ *' AFTER='0d' STATES=paused VERBOSE=true | |
# Delete all stopped | |
foreman-rake foreman_tasks:cleanup TASK_SEARCH='label ~ *' AFTER='0d' STATES=stopped VERBOSE=true | |
# Delete everything | |
foreman-rake foreman_tasks:cleanup TASK_SEARCH='label ~ *' AFTER='0d' STATES=running,stopped,paused VERBOSE=true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment