Add PULL_LIMIT and PUSH_LIMIT to cron.update_mirror task (#17568)

This commit is contained in:
zeripath 2021-11-23 03:09:35 +00:00 committed by GitHub
parent 9450410ff7
commit 188fd2dd1a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 70 additions and 17 deletions

View file

@ -119,6 +119,7 @@ func MirrorsIterate(f func(idx int, bean interface{}) error) error {
return db.GetEngine(db.DefaultContext).
Where("next_update_unix<=?", time.Now().Unix()).
And("next_update_unix!=0").
OrderBy("updated_unix ASC").
Iterate(new(Mirror), f)
}