refactor: run every 5 minutes instead of 2

2 is a bit agressive, but 5 will ensure there are no runs that coincide with each other.
This commit is contained in:
Jose Diaz-Gonzalez authored and GitHub committed 2018-12-12 13:27:11 -05:00
1 parent 2f2136af09
commit 929f503fa3
1 file changed
+3 -3
+3 -3
View File
@@ -33,10 +33,10 @@ EOF
cat<<EOF > /etc/systemd/system/dokku-retire.timer cat<<EOF > /etc/systemd/system/dokku-retire.timer
[Unit] [Unit]
Description=Run dokku-retire.service every 2 minutes Description=Run dokku-retire.service every 5 minutes
[Timer] [Timer]
OnCalendar=*:0/2 OnCalendar=*:0/5
EOF EOF
if command -v systemctl &>/dev/null; then if command -v systemctl &>/dev/null; then
systemctl reenable dokku-redeploy systemctl reenable dokku-redeploy
@@ -46,7 +46,7 @@ else
PATH=/usr/local/bin:/usr/bin:/bin PATH=/usr/local/bin:/usr/bin:/bin
SHELL=/bin/bash SHELL=/bin/bash
2 * * * * $DOKKU_SYSTEM_USER $DOKKU_PATH ps:retire */5 * * * * $DOKKU_SYSTEM_USER $DOKKU_PATH ps:retire
EOF EOF
fi fi
} }