<filename>core/dbt/task/archive.py
from dbt.node_runners import ArchiveRunner
from dbt.node_types import NodeType
from dbt.task.run import RunTask


class ArchiveTask(RunTask):
    def raise_on_first_error(self):
        return False

    def build_query(self):
        return {
            "include": self.args.models,
            "exclude": self.args.exclude,
            "resource_types": [NodeType.Archive],
            "tags": [],
        }

    def get_runner_type(self):
        return ArchiveRunner
