Changeset View
Changeset View
Standalone View
Standalone View
swh/scheduler/celery_backend/runner.py
# Copyright (C) 2015-2021 The Software Heritage developers | # Copyright (C) 2015-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 | ||||
"""This is the first scheduler runner. It is in charge of scheduling "oneshot" tasks | |||||
(e.g save code now, indexer, vault, deposit, ...). To do this, it reads tasks ouf of the | |||||
scheduler backend and pushes those to their associated rabbitmq queues. | |||||
The scheduler listener :mod:`swh.scheduler.celery_backend.pika_listener` is the module | |||||
in charge of finalizing the task results. | |||||
""" | |||||
import logging | import logging | ||||
from typing import Dict, List, Tuple | from typing import Dict, List, Tuple | ||||
from deprecated import deprecated | from deprecated import deprecated | ||||
from kombu.utils.uuid import uuid | from kombu.utils.uuid import uuid | ||||
from swh.core.statsd import statsd | from swh.core.statsd import statsd | ||||
from swh.scheduler import get_scheduler | from swh.scheduler import get_scheduler | ||||
▲ Show 20 Lines • Show All 158 Lines • Show Last 20 Lines |