fix #1105: change to running state immediatelly, don't wait for condor

to start execution


git-svn-id: svn+ssh://cvs.lpds.sztaki.hu/var/lib/svn/szdg/dcapi/trunk@994 a7169a2c-3604-0410-bc95-c702d8d87f7a
This commit is contained in:
drotos 2007-01-04 09:53:15 +00:00 committed by Adam Visegradi
parent 862f990229
commit 31f0fee320
2 changed files with 7 additions and 4 deletions

View File

@ -188,7 +188,8 @@ _DC_wu_condor2api_event(DC_Workunit *wu)
} }
if (ce->event == ULOG_EXECUTE) if (ce->event == ULOG_EXECUTE)
{ {
_DC_wu_set_state(wu, DC_WU_RUNNING); /* Fix #1105 */
/*_DC_wu_set_state(wu, DC_WU_RUNNING);*/
} }
} }
return(NULL); return(NULL);

View File

@ -52,7 +52,7 @@ int
DC_submitWU(DC_Workunit *wu) DC_submitWU(DC_Workunit *wu)
{ {
int ret; int ret;
//GString *fn; /*GString *fn;*/
char *id; char *id;
if (!_DC_wu_check(wu)) if (!_DC_wu_check(wu))
@ -73,11 +73,13 @@ DC_submitWU(DC_Workunit *wu)
return(ret); return(ret);
} }
//fn= g_string_new(wu->workdir); /*fn= g_string_new(wu->workdir);*/
//fn= g_string_append(fn, "/condor_submit.txt"); /*fn= g_string_append(fn, "/condor_submit.txt");*/
ret= _DC_start_condor_job(wu); ret= _DC_start_condor_job(wu);
if (ret == 0) if (ret == 0)
{ {
/* Fix #1105 */
_DC_wu_set_state(wu, DC_WU_RUNNING);
_DC_wu_update_condor_events(wu); _DC_wu_update_condor_events(wu);
while (wu->condor_events->len == 0) while (wu->condor_events->len == 0)
{ {