[CE/SP] cron for daily runs of scripts/flush_all.js (#25575)

* [CE/SP] `cron` for daily runs of `scripts/flush_all.js`

GitOrigin-RevId: 9616e99c01491e2a410601f4e33917ed47990b11
This commit is contained in:
Miguel Serrano
2025-05-19 11:14:50 +02:00
committed by Copybot
parent 957462b61c
commit cc3b020d88
2 changed files with 15 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
set -eux
echo "---------------------------------"
echo "Flush all project-history changes"
echo "---------------------------------"
date
source /etc/container_environment.sh
source /etc/overleaf/env.sh
cd /overleaf/services/project-history && node scripts/flush_all.js
echo "Done flushing all project-history changes"