shahar1 commented on code in PR #38998:
URL: https://github.com/apache/airflow/pull/38998#discussion_r1573340312


##########
airflow/providers/amazon/aws/hooks/batch_client.py:
##########
@@ -396,7 +396,11 @@ def get_job_description(self, job_id: str) -> dict:
 
             try:
                 response = self.get_conn().describe_jobs(jobs=[job_id])
-                return self.parse_job_description(job_id, response)
+                job_description = self.parse_job_description(job_id, response)
+                # allow us to retry getting the job description in case
+                # we called it before AWS could register the job
+                if job_description:
+                    return job_description

Review Comment:
   Good call, done!



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to