From 940f07033c2a7c42362e40156a5206f2769bd4fe Mon Sep 17 00:00:00 2001 From: caoqianming Date: Sat, 11 Feb 2023 16:35:19 +0800 Subject: [PATCH] =?UTF-8?q?opm=20start=5Fmtask=20=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E4=B8=8D=E5=8F=AF=E5=BC=80=E5=90=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/opm/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/opm/views.py b/apps/opm/views.py index 6cfe611f..b0ff6389 100644 --- a/apps/opm/views.py +++ b/apps/opm/views.py @@ -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)