Problem:
I have Jobs/Runs/Models I need to shutdown. Can I do this as Batch-job?
I want to stop all runs over 1d/1day/1week, how can I do this quickly when I have hundred's of runs?
I need to stop all tasks from my Project X?
It's time-consuming to delete from the UI, can I run a shell script?
Resolution:
Each run/job/app/Model will have several labels. This includes starting users/owner/Project etc.
Using kubectl to collect the various deployments/jobs/runs you can run a 'delete' command against the parent controller (i.e. if you delete a pod, it's likely to be restarted by the controller, which can be deployment or service or job).
Attachment is a bash script, which will show you the basic way to find using Projects ID and can be modified to actually delete the result but use at your own risk and beware you might delete some runs that may be vital to somebody! If you are not certain how to use this or the consequences please contact Domino Support!
The AGE can be used to find pods by 'seconds', i.e. 86400=1 Day
Applies to:
Domino 4.X
Domino 5.X
Comments
0 comments
Please sign in to leave a comment.