Skip to content

Commit af76e39

Browse files
committed
str -> uuid and make user_id and product_name optional
1 parent f93e3d0 commit af76e39

File tree

1 file changed

+4
-3
lines changed
  • packages/models-library/src/models_library/api_schemas_rpc_async_jobs

1 file changed

+4
-3
lines changed

packages/models-library/src/models_library/api_schemas_rpc_async_jobs/async_jobs.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
from datetime import datetime
22
from typing import Any, TypeAlias
3+
from uuid import UUID
34

45
from models_library.users import UserID
56
from pydantic import BaseModel, model_validator
67
from typing_extensions import Self
78

89
from ..progress_bar import ProgressReport
910

10-
AsyncJobId: TypeAlias = str
11+
AsyncJobId: TypeAlias = UUID
1112

1213

1314
class AsyncJobStatus(BaseModel):
@@ -45,5 +46,5 @@ class AsyncJobAbort(BaseModel):
4546
class AsyncJobNameData(BaseModel):
4647
"""Data for controlling access to an async job"""
4748

48-
user_id: UserID
49-
product_name: str
49+
user_id: UserID | None
50+
product_name: str | None

0 commit comments

Comments
 (0)