mirror of https://github.com/BOINC/boinc.git
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:
parent
22dc34dfd1
commit
6b6c4cc64f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue