From 1ea58458b866cd5120e6901b940b5bcd321d4dae Mon Sep 17 00:00:00 2001
From: tmaeno <tmaeno@bnl.gov>
Date: Wed, 28 Jun 2023 09:37:45 +0200
Subject: [PATCH] to allow hard-finish after soft-finish

---
 pandaserver/taskbuffer/OraDBProxy.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pandaserver/taskbuffer/OraDBProxy.py b/pandaserver/taskbuffer/OraDBProxy.py
index 37155c270..773ee76c5 100644
--- a/pandaserver/taskbuffer/OraDBProxy.py
+++ b/pandaserver/taskbuffer/OraDBProxy.py
@@ -13777,7 +13777,7 @@ def sendCommandTaskPanda(self,jediTaskID,dn,prodRole,comStr,comComment=None,useC
             if goForward:
                 if comStr in ['kill','finish']:
                     sendMsgToPilot = broadcast
-                    if taskStatus in ['finished','done','prepared','broken','aborted','aborted','toabort','aborting','failed','finishing']:
+                    if taskStatus in ['finished','done','prepared','broken','aborted','aborted','toabort','aborting','failed']:
                         goForward = False
                 if comStr == 'retry':
                     if taskStatus not in ['finished','failed','aborted','exhausted']: