We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42a6133 commit 60a0b8bCopy full SHA for 60a0b8b
packages/service-library/src/servicelib/celery/models.py
@@ -3,7 +3,7 @@
3
from typing import Annotated, Protocol, TypeAlias
4
from uuid import UUID
5
6
-from models_library.progress_bar import ProgressReport, ProgressStructuredMessage
+from models_library.progress_bar import ProgressReport
7
from pydantic import BaseModel, StringConstraints
8
9
TaskID: TypeAlias = str
@@ -115,9 +115,11 @@ class TaskStatus(BaseModel):
115
"total": 1.0,
116
"attempts": 1,
117
"unit": "Byte",
118
- "message": ProgressStructuredMessage.model_config[
119
- "json_schema_extra"
120
- ]["examples"][0],
+ "message": {
+ "description": "some description",
+ "current": 12.2,
121
+ "total": 123,
122
+ },
123
},
124
}
125
]
0 commit comments