feat 服务增加清理缓存

This commit is contained in:
jxxghp
2023-10-31 10:32:56 +08:00
parent 87eae72f51
commit 0d3dfdcbda
2 changed files with 17 additions and 4 deletions

View File

@ -219,8 +219,5 @@ def execute_command(jobid: str,
"""
if not jobid:
return schemas.Response(success=False, message="命令不能为空!")
if jobid == "subscribe_search":
Scheduler().start(jobid, state='R')
else:
Scheduler().start(jobid)
Scheduler().start(jobid)
return schemas.Response(success=True)