danmactough commented on a change in pull request #4039: [AIRFLOW-3046] Fix ECS 
Operator mistakenly reports success
URL: https://github.com/apache/incubator-airflow/pull/4039#discussion_r224666163
 
 

 ##########
 File path: airflow/contrib/operators/ecs_operator.py
 ##########
 @@ -139,6 +140,10 @@ def _check_success_task(self):
             raise AirflowException(response)
 
         for task in response['tasks']:
+            if re.match(r'Host .+?\(.+?\) terminated\.', 
task.get('stoppedReason', '')):
 
 Review comment:
   > I would like to edit that check to match "terminated" or "stopped" though, 
having seen that documentation, now.
   
   Amended with that change and added a comment as you suggested, as well, 
@Fokko 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to