From 0eef83ac63b1eadd4dc47c17c0b7b4661833dfd4 Mon Sep 17 00:00:00 2001 From: Arkadii Yakovets Date: Wed, 6 Sep 2023 14:48:51 -0700 Subject: [PATCH] Slow down batch job deregistering process --- infrastructure/deregister_batch_job_definitions.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/infrastructure/deregister_batch_job_definitions.py b/infrastructure/deregister_batch_job_definitions.py index 7d9d945c6..006445401 100644 --- a/infrastructure/deregister_batch_job_definitions.py +++ b/infrastructure/deregister_batch_job_definitions.py @@ -1,4 +1,5 @@ import os +import time import boto3 @@ -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)