send empty progress with initial job
This commit is contained in:
parent
be40797e59
commit
fd92d52339
|
@ -1,6 +1,6 @@
|
|||
from typing import Any, Optional
|
||||
|
||||
from ..params import HighresParams, ImageParams, Size, StageParams, UpscaleParams
|
||||
from ..params import HighresParams, ImageParams, Size, SizeChart, StageParams, UpscaleParams
|
||||
from ..server import ServerContext
|
||||
from ..worker import WorkerContext
|
||||
from .base import BaseStage
|
||||
|
@ -8,6 +8,8 @@ from .result import StageResult
|
|||
|
||||
|
||||
class EditMetadataStage(BaseStage):
|
||||
max_tile = SizeChart.max
|
||||
|
||||
def run(
|
||||
self,
|
||||
_worker: WorkerContext,
|
||||
|
|
|
@ -97,6 +97,11 @@ def job_reply(name: str):
|
|||
return jsonify(
|
||||
{
|
||||
"name": name,
|
||||
"queue": Progress(0, 0).tojson(), # TODO: use real queue position
|
||||
"status": JobStatus.PENDING,
|
||||
"stages": Progress(0, 0).tojson(),
|
||||
"steps": Progress(0, 0).tojson(),
|
||||
"tiles": Progress(0, 0).tojson(),
|
||||
}
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue