From 64e5029d8e0e7b09263a1e203a6249383013977d Mon Sep 17 00:00:00 2001 From: hxf Date: Wed, 28 Aug 2024 09:26:19 +0800 Subject: [PATCH] =?UTF-8?q?cherry=20pick=20c6c11ba=20from=20https://gitee.?= =?UTF-8?q?com/hxfJavaOK/resourceschedule=5Fwork=5Fscheduler/pulls/426=20?= =?UTF-8?q?=E5=BB=B6=E8=BF=9F=E4=BB=BB=E5=8A=A1duration=E5=80=BC=E6=9C=AA?= =?UTF-8?q?=E6=B8=85=E9=9B=B6=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D=20Signed?= =?UTF-8?q?-off-by:=20hxf=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/native/src/work_policy_manager.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/services/native/src/work_policy_manager.cpp b/services/native/src/work_policy_manager.cpp index 45b91de..bf6db72 100644 --- a/services/native/src/work_policy_manager.cpp +++ b/services/native/src/work_policy_manager.cpp @@ -216,6 +216,9 @@ bool WorkPolicyManager::StopWork(std::shared_ptr workStatus, int32_t RemoveFromReadyQueue(workStatus); hasCanceled = true; } else { + workStatus->workStartTime_ = 0; + workStatus->workWatchDogTime_ = 0; + workStatus->duration_ = 0; workStatus->MarkStatus(WorkStatus::Status::WAIT_CONDITION); } } -- Gitee