dabla commented on code in PR #55068:
URL: https://github.com/apache/airflow/pull/55068#discussion_r2626369470
##########
airflow-core/src/airflow/executors/workloads.py:
##########
@@ -183,7 +183,7 @@ class RunTrigger(BaseModel):
id: int
- ti: TaskInstance | None
+ ti: TaskInstance | None = None
Review Comment:
It facilitates the construction of it, not all triggers have a task instance
associated, so you where each time obliged to pass None as task_instance, this
change makes the code much "cleaner" by making it optional.
--
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]