ashb commented on code in PR #46032: URL: https://github.com/apache/airflow/pull/46032#discussion_r1942599535
########## task_sdk/src/airflow/sdk/api/datamodels/_generated.py: ########## @@ -239,7 +239,7 @@ class TaskInstance(BaseModel): dag_id: Annotated[str, Field(title="Dag Id")] run_id: Annotated[str, Field(title="Run Id")] try_number: Annotated[int, Field(title="Try Number")] - map_index: Annotated[int, Field(title="Map Index")] = -1 + map_index: Annotated[int | None, Field(title="Map Index")] = None Review Comment: This is working _towards_ having None in the DB now too. We can do that now that the PK of task_instance does not contain map_index column (it is just `(id)` now) -- 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: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org