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

Too many dav UploadCleanup in the job list #30772

Open
CarlSchwan opened this issue Jan 20, 2022 · 0 comments
Open

Too many dav UploadCleanup in the job list #30772

CarlSchwan opened this issue Jan 20, 2022 · 0 comments
Labels

Comments

@CarlSchwan
Copy link
Member

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce

  1. Create a lot of 'apps/dav/lib/BackgroundJob/UploadCleanup' jobs (> 50 000)
  2. Use Allow calling cron jobs background job class with occ #30359 to run these jobs

Expected behaviour

UploadCleanup jobs are only executed less often when not needed

Actual behaviour

After 14 minutes, the cron job stops and there is little difference in the number of jobs since these jobs are only deleted if the files in the upload directory are older than 24 hours or if the upload finishes.

This is causing issues as the same jobs get processed over and over again, wasting resources and potentially blocking other jobs to run.

Server configuration

Database: mysal

PHP version: 8.0

Nextcloud version: master

Primary storage: s3

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

No branches or pull requests

3 participants