diff --git a/app/api/endpoints/system.py b/app/api/endpoints/system.py index 15826531..6cd2d9ed 100644 --- a/app/api/endpoints/system.py +++ b/app/api/endpoints/system.py @@ -222,5 +222,8 @@ def execute_command(jobid: str, """ if not jobid: return schemas.Response(success=False, message="命令不能为空!") - Scheduler().start(jobid) - return schemas.Response(success=True) + if jobid == "subscribe_search": + Scheduler().start(jobid, state = 'R') + else: + Scheduler().start(jobid) + return schemas.Response(success=True) \ No newline at end of file