amoghrajesh commented on code in PR #77015:
URL: https://github.com/apache/airflow/pull/77015#discussion_r4734611710


##########
providers/databricks/src/airflow/providers/databricks/operators/databricks.py:
##########
@@ -97,6 +98,10 @@
     "BLOCKED",
     "WAITING_FOR_RETRY",
 )
+# Databricks repairs failed or canceled runs. A SKIPPED run, or one that never 
started for another
+# reason (e.g. MAXIMUM_CONCURRENT_RUNS_REACHED), has nothing to repair, so it 
gets a fresh run.
+REPAIRABLE_RUN_LIFE_CYCLE_STATES = ("TERMINATED", "INTERNAL_ERROR")
+REPAIRABLE_RUN_RESULT_STATES = ("FAILED", "TIMEDOUT", "CANCELED")

Review Comment:
   Yes, intended. A retry only happens after `on_kill` and only after 
`execution_timeout`, or when Airflow loses the worker; repairing the canceled 
run then means tasks that already finished don't run again. Marking the task 
failed leaves no retry, and a default clear discards the stored run ID, so 
neither of those repairs anything.



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