Merge pull request #12325 from overleaf/jpa-fix-shutdown-order

[server-ce] fix shutdown sequence: flush document-updater before history

GitOrigin-RevId: b46d25744cb18600e93b90e0ace5d4e1e563ebd2
This commit is contained in:
Jakob Ackermann
2023-03-22 09:05:26 +00:00
committed by Copybot
parent 21971956b7
commit 05f4deeb34
4 changed files with 7 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/bin/sh
cd /overleaf/services/track-changes && node scripts/flush_all.js >> /var/log/sharelatex/track-changes.log 2>&1
EXIT_CODE="$?"
if [ $EXIT_CODE -ne 0 ]
then
echo "track-changes/scripts/flush_all.js failed with exit code $EXIT_CODE"
fi
exit 0