feat: 优化图片资源删除管理,生图任务列表管理
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
"""命令入口:`python -m worker`,与 Web 进程独立运行。"""
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
import asyncio
|
||||
import logging
|
||||
|
||||
from services.job_worker import run_worker
|
||||
|
||||
|
||||
def main() -> None:
|
||||
parser = argparse.ArgumentParser(description="Ozon Seller Kit background worker")
|
||||
parser.add_argument("--once", action="store_true", help="最多处理一个已到期子项后退出(用于诊断/测试)")
|
||||
args = parser.parse_args()
|
||||
logging.basicConfig(level=logging.INFO, format="%(asctime)s %(levelname)s %(name)s: %(message)s")
|
||||
asyncio.run(run_worker(once=args.once))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user