mirror of https://github.com/BOINC/boinc.git
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:
parent
862f990229
commit
31f0fee320
|
@ -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);
|
||||||
|
|
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue