20 lines
439 B
Python
20 lines
439 B
Python
"""
|
|
backend/workers/worker_kb.py
|
|
|
|
用途:KB worker Supervisor 兼容启动脚本。
|
|
逻辑:转调 backend/worker.py,默认只消费 kb 队列。
|
|
"""
|
|
from __future__ import annotations
|
|
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
_backend_root = Path(__file__).resolve().parents[1]
|
|
if str(_backend_root) not in sys.path:
|
|
sys.path.insert(0, str(_backend_root))
|
|
|
|
from worker import main
|
|
|
|
if __name__ == '__main__':
|
|
main(queues=['kb'])
|