Skip to content

Commit 10a5fd2

Browse files
chrisguidryclaude
andauthored
Remove parameters and context fields from TaskRunResponse (#19816)
Co-authored-by: Claude Opus 4.5 <[email protected]>
1 parent 652314a commit 10a5fd2

File tree

2 files changed

+0
-22
lines changed

2 files changed

+0
-22
lines changed

src/prefect/server/schemas/responses.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -369,9 +369,6 @@ class TaskRunResponse(ORMBaseModel):
369369
description="The version of the task executed in this task run.",
370370
examples=["1.0"],
371371
)
372-
parameters: dict[str, Any] = Field(
373-
default_factory=dict, description="Parameters for the task run."
374-
)
375372
task_inputs: dict[
376373
str,
377374
list[
@@ -383,11 +380,6 @@ class TaskRunResponse(ORMBaseModel):
383380
]
384381
],
385382
] = Field(default_factory=dict, description="Inputs provided to the task run.")
386-
context: dict[str, Any] = Field(
387-
default_factory=dict,
388-
description="Additional context for the task run.",
389-
examples=[{"my_var": "my_val"}],
390-
)
391383
empirical_policy: schemas.core.TaskRunPolicy = Field(
392384
default_factory=schemas.core.TaskRunPolicy,
393385
description="The task run's empirical retry policy.",

ui-v2/src/api/prefect.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10743,27 +10743,13 @@ export interface components {
1074310743
* @description The version of the task executed in this task run.
1074410744
*/
1074510745
task_version?: string | null;
10746-
/**
10747-
* Parameters
10748-
* @description Parameters for the task run.
10749-
*/
10750-
parameters?: {
10751-
[key: string]: unknown;
10752-
};
1075310746
/**
1075410747
* Task Inputs
1075510748
* @description Inputs provided to the task run.
1075610749
*/
1075710750
task_inputs?: {
1075810751
[key: string]: (components["schemas"]["TaskRunResult"] | components["schemas"]["FlowRunResult"] | components["schemas"]["Parameter"] | components["schemas"]["Constant"])[];
1075910752
};
10760-
/**
10761-
* Context
10762-
* @description Additional context for the task run.
10763-
*/
10764-
context?: {
10765-
[key: string]: unknown;
10766-
};
1076710753
/** @description The task run's empirical retry policy. */
1076810754
empirical_policy?: components["schemas"]["TaskRunPolicy"];
1076910755
/**

0 commit comments

Comments
 (0)