You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/10/27 08:16:06 UTC
[GitHub] [airflow] nicholashendrickx-tomtom commented on a diff in pull request #27185: Handle AzureBatch task result correctly
nicholashendrickx-tomtom commented on code in PR #27185:
URL: https://github.com/apache/airflow/pull/27185#discussion_r1006545878
##########
airflow/providers/microsoft/azure/operators/batch.py:
##########
@@ -293,16 +293,17 @@ def execute(self, context: Context) -> None:
# Add task to job
self.hook.add_single_task_to_job(job_id=self.batch_job_id, task=task)
# Wait for tasks to complete
- fail_tasks = self.hook.wait_for_job_tasks_to_complete(job_id=self.batch_job_id, timeout=self.timeout)
+ failed_tasks = self.hook.wait_for_job_tasks_to_complete(job_id=self.batch_job_id,
+ timeout=self.timeout)
# Clean up
if self.should_delete_job:
# delete job first
self.clean_up(job_id=self.batch_job_id)
if self.should_delete_pool:
self.clean_up(self.batch_pool_id)
# raise exception if any task fail
Review Comment:
Good point. I wrote an improvement locally, let me test it and then push it.
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org