Skip to content

Commit 04bf609

Browse files
committed
worker: ignore partial loads
for some reason this can happen (and currently breaks exports on 39c3)
1 parent 0680bd3 commit 04bf609

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

worker/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ dependencies = [
1616
"transformers~=4.26",
1717
"torchaudio~=2.0",
1818
"torch~=2.0",
19-
"automerge @ git+https://github.com/bugbakery/automerge-py.git@ca6d8d3",
19+
"automerge @ git+https://github.com/bugbakery/automerge-py.git@a381bc8",
2020
"websockets~=10.4",
2121
"scikit-learn~=1.2",
2222
"watchfiles~=0.19",

worker/transcribee_worker/document.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ async def _get_document_state(self) -> automerge.Document:
8686
elif msg[0] == SyncMessageType.CHANGE_BACKLOG_COMPLETE:
8787
break
8888
elif msg[0] == SyncMessageType.FULL_DOCUMENT:
89-
doc = automerge.load(msg[1:])
89+
load_options = automerge.LoadOptions()
90+
load_options.on_partial_load = automerge.OnPartialLoad.Ignore
91+
doc = automerge.load_with_options(msg[1:], load_options)
9092

9193
return doc
9294

worker/uv.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)