henry3260 commented on code in PR #73596:
URL: https://github.com/apache/airflow/pull/73596#discussion_r4163857477
##########
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:
nit: Lines 130/153 already use the two wordings ADR-0007 asks every SDK to
share;
this one invents a third, so a cross-language grep misses the native-Dag
case.
--
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]