[scm_request_processor] Lower the cache expiration

The cache expiration for get_branches have to be lowered as it could
block the processing of scm requests for a hour. This could happen when
the processing fails after branch is already created, because of the
cache this will not be reflected for another hour and toddler will try to
create the branch again, which will fail.
This commit is contained in:
Michal Konecny 2025-05-22 11:50:21 +02:00
parent af4209b88e
commit c314de8682

View file

@ -690,7 +690,7 @@ class Pagure:
return result return result
@cache.cache_on_arguments(expiration_time=3600) @cache.cache_on_arguments(expiration_time=360)
def get_branches(self, namespace: str, repo: str) -> Any: def get_branches(self, namespace: str, repo: str) -> Any:
""" """
Return all branches for the specified repository. Return all branches for the specified repository.