Dev-iL commented on code in PR #57952:
URL: https://github.com/apache/airflow/pull/57952#discussion_r2513191747
##########
task-sdk/src/airflow/sdk/definitions/dag.py:
##########
@@ -1388,14 +1389,18 @@ def _run_task(
# The API Server expects the task instance to be in QUEUED state
before
# it is run.
ti.set_state(TaskInstanceState.QUEUED)
+ if ti.dag_version_id is None:
+ raise ValueError("TaskInstance.dag_version_id must not be
None")
task_sdk_ti = TaskInstanceSDK(
- id=ti.id,
+ id=UUID(ti.id) if isinstance(ti.id, str) else ti.id,
task_id=ti.task_id,
dag_id=ti.dag_id,
run_id=ti.run_id,
try_number=ti.try_number,
map_index=ti.map_index,
- dag_version_id=ti.dag_version_id,
+ dag_version_id=UUID(ti.dag_version_id)
+ if isinstance(ti.dag_version_id, str)
+ else ti.dag_version_id,
Review Comment:
Done
--
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]