Files
auto_control/tasks/__init__.py
T

13 lines
539 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""tasks 包:任务定义层。
每个任务一个独立子包(文件夹),自包含任务定义 + 专属操作 + 参数。
新增任务:在此目录新建 xxx/ 子包,定义 BaseTask 子类并用 @register_task 装饰,
然后在这里 import(from .xxx import task)。
"""
from .base import BaseTask, register_task, list_task_types, get_task_class
# 导入所有任务包,触发 @register_task 注册
from .douyin import task # noqa: F401
__all__ = ["BaseTask", "register_task", "list_task_types", "get_task_class"]