[TPU] Do not delete jobs with "keepalive" in the name (#17411)

[TPU] Do not delete jobs with "keepalive" in the name
This commit is contained in:
Carlos Mocholí 2023-04-19 14:02:02 +02:00 committed by GitHub
parent 26a549e87f
commit 5edb3b5126
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -62,6 +62,12 @@ jobs:
jobs_deleted=false
while read -r job_name created_at; do
# Skip jobs with "keepalive" in the name
if [[ "$job_name" == *"keepalive"* ]]; then
echo "Skipping $job_name, has keepalive in name"
continue
fi
# Convert the creation time to Unix timestamp
created_timestamp=$(date -d "${created_at}" +%s)