-
It would be great to being able to specify the cronjob interval. Currently it is 5 minutes. But that leads to notifications sometimes being 4 minutes late. It would be cool if the interval could be specified in the aio interface. |
Beta Was this translation helpful? Give feedback.
Answered by
szaimen
Jan 24, 2025
Replies: 1 comment 1 reply
-
Hi, we simply use the recommended default for cronjobs of every 5min which is recommended in the Nextcloud docs and we have no intention to change this. However you could do the following:
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
szaimen
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, we simply use the recommended default for cronjobs of every 5min which is recommended in the Nextcloud docs and we have no intention to change this.
However you could do the following:
sudo crontab -u root -e
(and choose your editor of choice if not already done. I'd recommend nano)*/2 * * * * docker ps --format "{{.Names}}" | grep -q "^nextcloud-aio-nextcloud$" && docker exec --user www-data nextcloud-aio-nextcloud php cron.php
which will run the command every 2 minutes.Ctrl + o
->Enter
and close the editor withCtrl + x
)