Fix: flush file moves before the scheduled workflow websocket notification

This commit is contained in:
Trenton H committed 2026-11-15 15:08:14 -08:00
1 parent 18f243d381
commit 1721bd559a
2 files changed
+46 -3

No files matched your search

+5 -3
View File
@@ -698,14 +698,16 @@ def check_scheduled_workflows() -> None:
workflow_to_run=workflow,
document=document,
)
# Move this document's files now rather than at the end
# of the task, so a long run makes steady progress and
# the notification below carries the final filename and
# modified timestamp.
flush_pending_file_moves()
# Scheduled workflows dont send document_updated signal, so send a websocket update here to ensure clients are updated
send_websocket_document_updated(
sender=None,
document=document,
)
# Move this document's files now rather than at the end
# of the task, so a long run makes steady progress.
flush_pending_file_moves()
def update_document_parent_tags(tag: Tag, new_parent: Tag) -> None: