Source code for swh.indexer
# Copyright (C) 2016-2023 The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information
# implemented as a function to help lazy loading
[docs]
def get_datastore(*args, **kw):
from .indexer import get_indexer_storage
return get_indexer_storage(*args, **kw)
default_cfg = {
"default_interval": "1 day",
"min_interval": "12 hours",
"max_interval": "1 day",
"backoff_factor": 2,
"max_queue_length": 5000,
}