jason810496 commented on code in PR #73596:
URL: https://github.com/apache/airflow/pull/73596#discussion_r4164663749


##########
java-sdk/sdk/src/main/kotlin/org/apache/airflow/sdk/internal/ArgValues.kt:
##########
@@ -147,6 +173,104 @@ object ArgValues {
     type: Type,
   ): Any? = decode(client.resolveBinding(binding), type)
 
+  /**
+   * Reports a Dag that wired more or fewer inputs than a [TaskInput] can take.
+   * A [TaskInput] is a task's only data parameter, so exactly one input feeds
+   * it; a mismatch warns and the first input is used, leaving the task to run
+   * on what it can bind rather than failing the run outright.
+   */
+  private fun warnWiredArity(
+    client: Client,
+    type: Class<*>,
+    wired: Int,
+  ) {
+    if (wired == 1) return
+    logger.warning(
+      "Dag wired a different number of argument(s) than the task handler 
declares",

Review Comment:
   Thanks, addressed in 
https://github.com/apache/airflow/pull/73596/commits/b1a2e15ebdb4f88c1efb9a18056ddfdfb16347dc.



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