dossett commented on issue #4064: AIRFLOW-3149 Support dataproc cluster 
deletion on ERROR
URL: 
https://github.com/apache/incubator-airflow/pull/4064#issuecomment-437545305
 
 
   Hi @fenglu-g thank you for the follow-up!  What about taking both 
approaches?  Deleting a cluster first if it already exists, creating the 
cluster, and if the creation fails and results in an ERROR state deleting it  
before exiting.  That could be the default behavior without the need to add the 
new parameter (`delete_cluster_on_error`).  Having the operator clean up after 
itself and not leave errant resources behind seems like a nice property.

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