Skip to content

Commit

Permalink
XXX_FETCHED の状態を削除
Browse files Browse the repository at this point in the history
  • Loading branch information
n-kakuko authored Oct 9, 2024
1 parent fff8584 commit 80b2a76
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions backend/oqtopus_cloud/provider/schemas/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,21 @@ class InternalTaskStatus(
RootModel[
Literal[
"QUEUED",
"QUEUED_FETCHED",
"RUNNING",
"COMPLETED",
"FAILED",
"CANCELLING",
"CANCELLING_FETCHED",
"CANCELLED",
]
]
):
root: Annotated[
Literal[
"QUEUED",
"QUEUED_FETCHED",
"RUNNING",
"COMPLETED",
"FAILED",
"CANCELLING",
"CANCELLING_FETCHED",
"CANCELLED",
],
Field(examples=["QUEUED"]),
Expand Down Expand Up @@ -157,9 +153,5 @@ class TaskStatusUpdateResponse(BaseModel):
message: str


class InternalFetchableTaskStatus(RootModel[Literal["QUEUED", "CANCELLING"]]):
root: Annotated[Literal["QUEUED", "CANCELLING"], Field(examples=["QUEUED"])]


class UnfetchedTasksResponse(RootModel[list[Union[TaskInfo, TaskId]]]):
root: list[Union[TaskInfo, TaskId]]

0 comments on commit 80b2a76

Please sign in to comment.