overleaf/server-ce/cron/project-history-periodic-flush.sh

13 lines
273 B
Bash
Raw Normal View History

#!/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"