Skip to content

Commit 434602f

Browse files
committed
task_progress -> progress
1 parent 7faf55f commit 434602f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
class AsyncJobStatus(BaseModel):
1212
job_id: AsyncJobId
13-
task_progress: PositiveFloat = Field(..., ge=0.0, le=1.0)
13+
progress: PositiveFloat = Field(..., ge=0.0, le=1.0)
1414
done: bool
1515
started: datetime
1616
stopped: datetime | None

services/storage/src/simcore_service_storage/api/rpc/_async_jobs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ async def get_status(app: FastAPI, job_id: AsyncJobId) -> AsyncJobStatus:
2727
assert app # nosec
2828
return AsyncJobStatus(
2929
job_id=job_id,
30-
task_progress=0.5,
30+
progress=0.5,
3131
done=False,
3232
started=datetime.now(),
3333
stopped=None,

services/web/server/tests/unit/with_dbs/03/test_storage_rpc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ async def test_data_export(
9999
[
100100
AsyncJobStatus(
101101
job_id=_faker.uuid4(),
102-
task_progress=0.5,
102+
progress=0.5,
103103
done=False,
104104
started=datetime.now(),
105105
stopped=None,

0 commit comments

Comments
 (0)