Files
syops/backend/app/jobs/__init__.py
T

12 lines
332 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.
"""
backend/app/jobs/__init__.py
用途:统一后台任务层入口(方案 D)。
依赖:types、registry、queue、runner。
逻辑:Web API enqueue;worker.py 调用 runner.run_forever。
"""
from app.jobs.types import JobStatus, JobType
from app.jobs.queue import enqueue
__all__ = ['JobType', 'JobStatus', 'enqueue']