opm start_mtask 关闭不可开启

This commit is contained in:
caoqianming 2023-02-11 16:35:19 +08:00
parent eda09432f4
commit 940f07033c
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ class OplViewSet(CustomModelViewSet):
开启作业监控
"""
obj = self.get_object()
if obj.operation.state != Operation.OP_DONE:
if obj.operation.state == Operation.OP_DONE:
raise ParseError('作业已关闭,不能开启监控')
res = start_mtask(obj)
return Response(res)