Vamsi-klu opened a new issue, #60463: URL: https://github.com/apache/airflow/issues/60463
Split from PR #60435. In `airflow-core/src/airflow/cli/commands/task_command.py`, `_get_ti` has a TODO to validate `map_index` is in range when creating a mapped task instance. - TODO: `# TODO: Validate map_index is in range?` - Context: `_get_ti` only checks map_index presence, but doesn't validate against parse-time mapped count when available. Proposal: - If map_index >= 0 and the task has a parse-time mapped count, raise a clear error when out of range. - Skip validation when the count is not known (e.g. XCom-driven mapping). -- 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]
