From 6b6c4cc64f0e30c614aca79f4f7c783fe76f61f5 Mon Sep 17 00:00:00 2001 From: drotos Date: Mon, 20 Nov 2006 09:42:15 +0000 Subject: [PATCH] cancelation of suspended wu (fix #1038) git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@978 a7169a2c-3604-0410-bc95-c702d8d87f7a --- dcapi/condor/condor_managewu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dcapi/condor/condor_managewu.c b/dcapi/condor/condor_managewu.c index 0438193591..e5f2bf8029 100644 --- a/dcapi/condor/condor_managewu.c +++ b/dcapi/condor/condor_managewu.c @@ -128,10 +128,10 @@ DC_cancelWU(DC_Workunit *wu) DC_log(LOG_DEBUG, "DC_cancelWU(%p-\"%s\")", wu, wu->data.name); - if (wu->data.state != DC_WU_RUNNING || + if (wu->data.state != DC_WU_RUNNING && wu->data.state != DC_WU_SUSPENDED) { - DC_log(LOG_NOTICE, "Can not cancel a non-running/suspended wu"); + DC_log(LOG_NOTICE, "Can not cancel a non-running/non-suspended wu"); return(DC_ERR_INTERNAL); } ret= _DC_stop_condor_job(wu);