Commit 9b6978c2 authored by Rayan  CHIKHI's avatar Rayan CHIKHI
Browse files

kill

parent 68ad6773
#! /bin/bash
myJOBQueue=RayanSerratusDlBatchProcessingJobQueue
for i in $(aws batch list-jobs --job-queue $myJOBQueue --output text --query jobSummaryList[*].[jobId])
do
echo "Deleting RUNNING Job: $i"
aws batch terminate-job --job-id $i --reason "Terminating job."
echo "Job $i deleted"
done
for i in $(aws batch list-jobs --job-queue $myJOBQueue --job-status runnable --output text --query jobSummaryList[*].[jobId])
do
echo "Deleting RUNNABLE Job: $i"
aws batch terminate-job --job-id $i --reason "Terminating job."
echo "Job $i deleted"
done
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment