Remove Codeberg-specific ratelimit when checking Git repos (#609)

This commit is contained in:
ROllerozxa
2025-09-10 15:11:57 +02:00
committed by GitHub
parent e44a5545a3
commit 864add055b

View File

@@ -529,6 +529,7 @@ def check_update_config_impl(package):
config.last_tag = tag
@celery.task(bind=True, rate_limit="60/m")
def check_update_config(self, package_id):
package: Package = Package.query.get(package_id)
if package is None:
@@ -564,17 +565,6 @@ def check_update_config(self, package_id):
return
@celery.task(bind=True, rate_limit="60/m")
def check_update_config_default(self, package_id):
check_update_config(self, package_id)
@celery.task(bind=True, rate_limit="25/h") # per worker
def check_update_config_codeberg(self, package_id):
check_update_config(self, package_id)
@celery.task
def check_for_updates():
for update_config in PackageUpdateConfig.query.all():
@@ -587,9 +577,6 @@ def check_for_updates():
db.session.delete(update_config)
continue
if "codeberg.org" in update_config.package.repo:
check_update_config_codeberg.delay(update_config.package_id)
else:
check_update_config_default.delay(update_config.package_id)
check_update_config.delay(update_config.package_id)
db.session.commit()