Changeset View
Changeset View
Standalone View
Standalone View
swh/scheduler/__init__.py
# Copyright (C) 2018-2021 The Software Heritage developers | # Copyright (C) 2018-2021 The Software Heritage developers | ||||
# See the AUTHORS file at the top-level directory of this distribution | # See the AUTHORS file at the top-level directory of this distribution | ||||
# License: GNU General Public License version 3, or any later version | # License: GNU General Public License version 3, or any later version | ||||
# See top-level LICENSE file for more information | # See top-level LICENSE file for more information | ||||
from __future__ import annotations | from __future__ import annotations | ||||
from importlib import import_module | from importlib import import_module | ||||
from typing import TYPE_CHECKING, Any, Dict | from typing import TYPE_CHECKING, Any, Dict | ||||
import warnings | import warnings | ||||
DEFAULT_CONFIG = { | DEFAULT_CONFIG = { | ||||
"scheduler": ( | "scheduler": ( | ||||
"dict", | "dict", | ||||
{ | { | ||||
"cls": "local", | "cls": "postgresql", | ||||
"db": "dbname=softwareheritage-scheduler-dev", | "db": "dbname=softwareheritage-scheduler-dev", | ||||
}, | }, | ||||
) | ) | ||||
} | } | ||||
# current configuration. To be set by the config loading mechanism | # current configuration. To be set by the config loading mechanism | ||||
CONFIG = {} # type: Dict[str, Any] | CONFIG = {} # type: Dict[str, Any] | ||||
▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines |