bugraoz93 commented on code in PR #61311:
URL: https://github.com/apache/airflow/pull/61311#discussion_r2751492038
##########
providers/celery/tests/integration/celery/test_celery_executor.py:
##########
@@ -199,8 +199,24 @@ def fake_execute(input: str) -> None: # Use same
parameter name as Airflow 3 ve
TaskInstanceKey("id", "fail", "abc", 0, -1),
]
for w in (
- workloads.ExecuteTask.model_construct(ti=ti),
-
workloads.ExecuteTask.model_construct(ti=ti.model_copy(update={"task_id":
"fail"})),
+ workloads.ExecuteTask.model_construct(
+ ti=ti,
+ token="token",
Review Comment:
This could work. Maybe we should use make rather than `model_construct` so
that such as token generation can be from generated and using defaults
https://github.com/apache/airflow/blob/40f6ec1c6021f242e80e010043273d2a4cbd4887/airflow-core/src/airflow/executors/workloads.py#L111-L146
--
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]