overleaf/server-ce/cron/project-history-periodic-flush.sh
Miguel Serrano 28c9c32e1b Merge pull request #11448 from overleaf/msm-sp-cron
[CE/SP] `cron` jobs for Full Project History

GitOrigin-RevId: 1f52bd4baaed5856193cd3babfe2c95865b25cf8
2023-01-26 11:39:16 +00:00

12 lines
273 B
Bash
Executable file

#!/usr/bin/env bash
set -eux
echo "--------------------------"
echo "Flush project-history queue"
echo "--------------------------"
date
PROJECT_HISTORY_URL='http://localhost:3054'
curl -X POST "${PROJECT_HISTORY_URL}/flush/old?timeout=3600000&limit=5000&background=1"