zachliu commented on pull request #18733:
URL: https://github.com/apache/airflow/pull/18733#issuecomment-934617007


   > @zachliu i'm double-checking the issue #15000. So would it be better to 
check `stopCode: TaskFailedToStart` rather than existence of the log stream of 
the task in order to handle the case properly? Because in #17626 you said that 
log stream is a kinda flag when ECS fails to provision tasks.
   
   well ideally it would be better. but since that thing is hiding deep in the 
json response, the code may not look so good :joy_cat: 
   
   ```
   response.get('tasks')[0].get('stoppedReason')
   response.get('tasks')[0].get('stopCode')
   ```


-- 
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