Skip to content

cron.update_mirrors updates only 51 mirrors in one run #18895

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

Closed
somera opened this issue Feb 25, 2022 · 2 comments
Closed

cron.update_mirrors updates only 51 mirrors in one run #18895

somera opened this issue Feb 25, 2022 · 2 comments
Labels
issue/not-a-bug The reported issue is the intended behavior or the problem is not inside Gitea

Comments

@somera
Copy link

somera commented Feb 25, 2022

Gitea Version

1.16.2

Git Version

2.25.1

Operating System

Ubuntu 20.04.4

How are you running Gitea?

Precompiled gitea-1.16.2-linux-amd64

Database

PostgreSQL

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Description

In #18607 I reported problem with the ron.update_mirrors. Now it's wioking, but the cron is updating only 51 mirrors.

Status after Gitea update

image

Status after the first run Gitea updates 51 mirrors.

image

why only 51?

Status after the second run Gitea updates 51 mirrors.

image

why only 51?

51 is same like some days ago: #18607 (comment)

This

[mirror]
; Default interval as a duration between each check
DEFAULT_INTERVAL = 8h
; Min interval as a duration must be > 1m
MIN_INTERVAL = 10m
LENGTH = 20000
TYPE = level

[queue.mirror]
LENGTH = 20000
WORKERS = 1

[cron.update_mirrors]
; Every hour
SCHEDULE = 0 0 * * * *
PULL_LIMITS = 1000
PUSH_LIMITS = 1000

is my current configuration.

With

PULL_LIMITS = 1000

gitea should update 1000 mirrors in one run. Right?

After 4th run I did this:

  • flush-queues
  • stop gitea
  • remove ./../data/queues/common folder
  • start gitea

And the 5th run updated again only 51 mirrors.

How can I update in Gitea 1.16.x 1000, 2000 or more mirrors in one row? And not only 51.

My current "solution" is: run the cron every hour and update the 51 mirror on every run. In my case it needs 179 runs.

@zeripath
Copy link
Contributor

@somera Please read the configuration cheat sheet.

https://docs.gitea.io/en-us/config-cheat-sheet/#cron---update-mirrors-cronupdate_mirrors

[cron.update_mirrors]
PULL_LIMIT = 1000
PUSH_LIMIT = 1000

@somera
Copy link
Author

somera commented Feb 28, 2022

@somera Please read the configuration cheat sheet.

https://docs.gitea.io/en-us/config-cheat-sheet/#cron---update-mirrors-cronupdate_mirrors

[cron.update_mirrors]
PULL_LIMIT = 1000
PUSH_LIMIT = 1000

My mistake. I need glasses.

@lunny lunny removed this from the 1.16.3 milestone Mar 1, 2022
@go-gitea go-gitea locked and limited conversation to collaborators Apr 28, 2022
@delvh delvh added issue/not-a-bug The reported issue is the intended behavior or the problem is not inside Gitea and removed reviewed/invalid labels Oct 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/not-a-bug The reported issue is the intended behavior or the problem is not inside Gitea
Projects
None yet
Development

No branches or pull requests

4 participants