kosiew commented on PR #64960:
URL: https://github.com/apache/airflow/pull/64960#issuecomment-4543284756

   @moomindani 
   
   I [added a command-level 
repro](https://github.com/apache/airflow/pull/64960/commits/36126e17ec5578f2f3769e6f4b46a231d08c19c5)
 in the PR thread so the review has direct evidence of the user-visible failure 
path, not only unit-test coverage.
   
   Specifically, I ran an `airflow dags test` equivalent with `deferrable=True` 
and `databricks_retry_args={"wait": tenacity.wait_incrementing(...)}` and paste 
below the output showing the Databricks-specific `ValueError` is raised before 
any Databricks API call.
   
   ```
   ❯ uv run --project providers/databricks python 
dev/databricks_retry_args_repro.py
   Executing deferrable DatabricksSubmitRunOperator with invalid 
databricks_retry_args...
   2026-05-26T10:10:49.073536Z [warning  ] DatabricksSubmitRunOperator.execute 
cannot be called outside of the Task Runner! 
[airflow.task.operators.airflow.providers.databricks.operators.databricks.DatabricksSubmitRunOperator]
 loc=operator.py:439
   2026-05-26T10:10:49.073868Z [info     ] Run submitted with run_id: 123 
[airflow.task.operators.airflow.providers.databricks.operators.databricks.DatabricksSubmitRunOperator]
 loc=databricks.py:203
   2026-05-26T10:10:49.073943Z [info     ] View run status, Spark UI, and logs 
at https://example.invalid/databricks-run/123 
[airflow.task.operators.airflow.providers.databricks.operators.databricks.DatabricksSubmitRunOperator]
 loc=databricks.py:208
   raised: ValueError: DatabricksExecutionTrigger does not support 
non-serializable retry_args/databricks_retry_args when deferrable=True. Use 
JSON-serializable values, remove callable retry strategies, or disable 
deferrable mode.
   submit_run calls: 1
   get_run calls: 1
   
   Creating DatabricksExecutionTrigger with invalid deferrable retry_args...
   raised: ValueError: DatabricksSubmitRunOperator does not support 
non-serializable retry_args/databricks_retry_args when deferrable=True. Use 
JSON-serializable values, remove callable retry strategies, or disable 
deferrable mode.
   DatabricksHook called: False
   ```


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