Nextcloud needs frequent background jobs to keep running properly.
Depending on the situation this "cron job" may take a very long time, overlapping with the default 5 minute delay between jobs. Which may end up running several instances of the job.
To mitigate this we have 2 options:
- Use a
systemd service+timer
- Encapsulate the cronjob into a bash script that checks if it is already running
The systemd approach has official support and will (by default) not run on top of a previous run (if still running).