-
Notifications
You must be signed in to change notification settings - Fork 11
/
cronscript.sh
executable file
·17 lines (17 loc) · 807 Bytes
/
cronscript.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env sh
# purge sessions
echo "Job started (purge sessions): $(date)"
curl --silent http://localhost:8000/cron/purge_sessions/ &>/dev/null
echo "Job started: $(date)"
# purge users not confirmed
echo "Job started (purge users not confirmed): $(date)"
curl --silent http://localhost:8000/cron/purge_users_not_confirmed/ &>/dev/null
echo "Job started: $(date)"
# set soft delete anonymous private blueprints
echo "Job started (set soft delete anonymous private blueprints): $(date)"
curl --silent http://localhost:8000/cron/set_soft_delete_anonymous_private_blueprints/ &>/dev/null
echo "Job started: $(date)"
# purge deleted blueprints
echo "Job started (purge deleted blueprints): $(date)"
curl --silent http://localhost:8000/cron/purge_deleted_blueprints/ &>/dev/null
echo "Job started: $(date)"