onlyarnav commented on code in PR #70130:
URL: https://github.com/apache/airflow/pull/70130#discussion_r3656974482


##########
providers/databricks/src/airflow/providers/databricks/operators/databricks.py:
##########
@@ -1315,7 +1319,7 @@ def _build_run_now_payload(self) -> dict[str, Any]:
             json["job_id"] = job_id
             del json["job_name"]
 
-        if not json.get("job_parameters") and self.params:
+        if self.forward_dag_params and not json.get("job_parameters") and 
self.params:

Review Comment:
    I've updated _build_run_now_payload to define 
_RUN_NOW_PARAM_SLOTS_CONFLICTING_WITH_JOB_PARAMETERS and automatically skip 
auto-injecting job_parameters whenever any of the 6 legacy parameter slots are 
present in json



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