nextcloud / previewgenerator

Nextcloud app to do preview generation in the background.
https://apps.nextcloud.com/apps/previewgenerator
GNU Affero General Public License v3.0
450 stars 56 forks source link

Hetzner Storage Share (hosted Nextcloud) Webcron #299

Closed devnoname120 closed 2 years ago

devnoname120 commented 2 years ago

Hetzner Storage Share (only 3.90€ for 1 TB with RAID redundancy and regular backups!) is configured with a PHP max_execution_time set to 10800, this is 3 hours (!)

Would it be possible to add a Webcron for the hosted Nextcloud instances that have a high max_execution_time?

Thank you 🙏

st3iny commented 2 years ago

That is a legitimate use case for implementing background jobs. This has been on my list for a long time but I can't make any promises.

st3iny commented 2 years ago

This feature is tracked in https://github.com/nextcloud/previewgenerator/issues/1.

devnoname120 commented 10 months ago

Quick update, the following three commands are now available on the Hetzner administration page:

preview:generate-all %USER%
preview:pre-generate
preview:reset-rendered-texts

I'm not entirely sure whether preview:pre-generate is run as part of the CRON job or if it needs to be run manually by the user.

st3iny commented 10 months ago

That are great news!

preview:pre-generate has to be run periodically through a cron job. preview:generate-all has to be run once (after installing the app).

n00bster commented 6 months ago

That are great news!

preview:pre-generate has to be run periodically through a cron job. preview:generate-all has to be run once (after installing the app).

How did you add the command to the "hetzner storage share" to a "cronjob" there?

st3iny commented 5 months ago

I have no experience with Hetzner managed services but you could have a look at the official cron job manager docs.