[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:
parent
af4209b88e
commit
c314de8682
1 changed files with 1 additions and 1 deletions
|
@ -690,7 +690,7 @@ class Pagure:
|
|||
|
||||
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:
|
||||
"""
|
||||
Return all branches for the specified repository.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue