danielvdende opened a new pull request, #35212:
URL: https://github.com/apache/airflow/pull/35212

   
   ---
   The `remove_on_error` parameter of the `AzureContainerInstanceOperator` was 
not working as intended. When set to `False` it should only skip the removal of 
the Azure Container Group **if** the exit code is non-zero. For zero exit 
codes, the infra should be dropped. This was not happening, because the 
`on_kill` method did an additional check for this parameter, even though it was 
already being checking in the `execute` function. This led to the Azure infra 
always being left in place (also on success). This commit fixes that behaviour.
   


-- 
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-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to