mirror of
https://github.com/docling-project/docling-serve.git
synced 2025-11-29 00:23:36 +00:00
docs: fix docs for websocket breaking condition (#390)
Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
This commit is contained in:
@@ -433,7 +433,7 @@ with connect(uri) as websocket:
|
|||||||
payload = json.loads(message)
|
payload = json.loads(message)
|
||||||
if payload["message"] == "error":
|
if payload["message"] == "error":
|
||||||
break
|
break
|
||||||
if payload["message"] == "error" and payload["task"]["task_status"] in ("success", "failure"):
|
if payload["message"] == "update" and payload["task"]["task_status"] in ("success", "failure"):
|
||||||
break
|
break
|
||||||
except:
|
except:
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user