Reduce GC work time and make sure to use distinct query
This commit is contained in:
parent
1e76f71e3d
commit
4e5c8a9281
2 changed files with 2 additions and 1 deletions
|
@ -10,7 +10,7 @@ logger = logging.getLogger(__name__)
|
|||
class GarbageCollectionWorker(Worker):
|
||||
def __init__(self):
|
||||
super(GarbageCollectionWorker, self).__init__()
|
||||
self.add_operation(self._garbage_collection_repos, 10)
|
||||
self.add_operation(self._garbage_collection_repos, 30)
|
||||
|
||||
def _garbage_collection_repos(self):
|
||||
""" Performs garbage collection on repositories. """
|
||||
|
|
Reference in a new issue