h
This commit is contained in:
@@ -59,7 +59,11 @@ class _WorkerLogger:
|
||||
|
||||
def update_worker_status(self, worker_id: str, status: str) -> None:
|
||||
try:
|
||||
update_worker(worker_id, status=status)
|
||||
normalized = (status or "").lower()
|
||||
kwargs: dict[str, str] = {"status": status}
|
||||
if normalized in {"completed", "error", "cancelled"}:
|
||||
kwargs["result"] = normalized
|
||||
update_worker(worker_id, **kwargs)
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user