Skip to content

Commit

Permalink
Merge pull request #3376 from AlexsLemonade/ark/slow-down-batch-jobs-…
Browse files Browse the repository at this point in the history
…deregistering

Slow down batch job deregistering process
  • Loading branch information
arkid15r authored Sep 6, 2023
2 parents 6eb753f + 0eef83a commit 8aad8f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions infrastructure/deregister_batch_job_definitions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import time

import boto3

Expand Down Expand Up @@ -35,3 +36,5 @@
# There can be multiple revisions per job definition. We want them all gone.
for job_definition in job_definitions:
batch.deregister_job_definition(jobDefinition=job_definition["jobDefinitionArn"])

time.sleep(1)

0 comments on commit 8aad8f6

Please sign in to comment.