Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: cron job #4997

Open
HonkXL opened this issue Jun 14, 2024 · 1 comment
Open

feature request: cron job #4997

HonkXL opened this issue Jun 14, 2024 · 1 comment

Comments

@HonkXL
Copy link

HonkXL commented Jun 14, 2024

At moment users visiting the site are triggering events like sending of update-mails (in the language of visitor, not user) or mails about open reviews.
I think it would be a good idea to make a setting where the admin can change it between "event triggered by visitor" and "event triggered by cron job". On the second option you have to manually add a cron job on the OS.

The advantage would be that mails are sent on a useful time sheme like all 6 hours and update checks can be performed on fixed hours, not random.

If you know Nextcloud - there this is an option to run the background jobs by
AJAX (triggered by visitor/user)
Webcron (webcron is starting cron.php over http - only for small installations)
Cron (cron is calling php ./occ in context of the www-data user - this is the recommended way).

And there is a view when the last cron job was running and a error when this time was too long in the past.

And maybe this cron job could be used for things like sheduled exports, database reorgs or automated cleanups in the future?

@mpaluchowski
Copy link

Seconded. This should also help implement #2948 because the cron job could also check for updates. Wordpress does this with its wp-cron.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants