File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
api_fastapi/execution_api/datamodels Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -301,7 +301,7 @@ class TIRunContext(BaseModel):
301
301
dag_run : DagRun
302
302
"""DAG run information for the task instance."""
303
303
304
- task_reschedule_count : Annotated [ int , Field ( default = 0 )]
304
+ task_reschedule_count : int = 0
305
305
"""How many times the task has been rescheduled."""
306
306
307
307
max_tries : int
Original file line number Diff line number Diff line change @@ -931,6 +931,9 @@ def process_executor_events(
931
931
context_from_server = TIRunContext (
932
932
dag_run = ti .dag_run ,
933
933
max_tries = ti .max_tries ,
934
+ variables = [],
935
+ connections = [],
936
+ xcom_keys_to_clear = [],
934
937
),
935
938
)
936
939
executor .send_callback (request )
@@ -2290,6 +2293,9 @@ def _purge_task_instances_without_heartbeats(
2290
2293
context_from_server = TIRunContext (
2291
2294
dag_run = ti .dag_run ,
2292
2295
max_tries = ti .max_tries ,
2296
+ variables = [],
2297
+ connections = [],
2298
+ xcom_keys_to_clear = [],
2293
2299
),
2294
2300
)
2295
2301
session .add (
You can’t perform that action at this time.
0 commit comments