# Copyright 2024 The Debusine Developers
# See the AUTHORS file at the top-level directory of this distribution
#
# This file is part of Debusine. It is subject to the license terms
# in the LICENSE file found in the top-level directory of this
# distribution. No part of Debusine, including this file, may be copied,
# modified, propagated, or distributed except according to the terms
# contained in the LICENSE file.

"""
Server-side Debusine tasks.

The tasks in this package run in a Celery worker.
"""

from debusine.server.tasks.base import BaseServerTask  # isort: split

# Sub-tasks need to be imported in order to be available to BaseTask
# (e.g. for BaseTask.is_valid_task_name). They are registered via
# BaseTask.__init_subclass__.
from debusine.server.tasks.aptmirror import APTMirror  # noqa: F401, I100, I202
from debusine.server.tasks.copy_collection_items import (  # noqa: F401, I202
    CopyCollectionItems,
)
from debusine.server.tasks.noop import ServerNoop  # noqa: F401, I202
from debusine.server.tasks.package_upload import (  # noqa: F401, I202
    PackageUpload,
)
from debusine.server.tasks.update_suite_lintian_collection import (  # noqa: E501, F401, I202
    UpdateSuiteLintianCollection,
)

__all__ = [
    "BaseServerTask",
]
