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
This commit is contained in:
drotos 2006-11-20 09:42:15 +00:00 committed by Adam Visegradi
parent 22dc34dfd1
commit 6b6c4cc64f
1 changed files with 2 additions and 2 deletions

View File

@ -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);