1
1

Keep everyone in sync with new job state

This commit was SVN r25563.
Этот коммит содержится в:
Ralph Castain 2011-12-02 14:12:40 +00:00
родитель 07655e2945
Коммит 6cbd8fa6c9
2 изменённых файлов: 23 добавлений и 0 удалений

Просмотреть файл

@ -7,6 +7,8 @@
* of Tennessee Research Foundation. All rights
* reserved.
* Copyright (c) 2011 Oracle and/or all its affiliates. All rights reserved.
* Copyright (c) 2011 Los Alamos National Security, LLC.
* All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow

Просмотреть файл

@ -6,6 +6,8 @@
* Copyright (c) 2004-2011 The University of Tennessee and The University
* of Tennessee Research Foundation. All rights
* reserved.
* Copyright (c) 2011 Los Alamos National Security, LLC.
* All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
@ -517,6 +519,25 @@ int orte_errmgr_hnp_base_global_update_state(orte_jobid_t job,
hnp_abort(jdata->jobid, sts);
}
break;
case ORTE_JOB_STATE_SILENT_ABORT:
failed_start(jdata);
check_job_complete(jdata); /* set the local proc states */
/* the job object for this job will have been NULL'd
* in the array if the job was solely local. If it isn't
* NULL, then we need to tell everyone else to die
*/
if (NULL != (jdata = orte_get_job_data_object(job))) {
if (ORTE_PROC_MY_NAME->jobid == job && !orte_abnormal_term_ordered) {
/* set the flag indicating that a daemon failed so we use the proper
* methods for attempting to shutdown the rest of the system
*/
orte_abnormal_term_ordered = true;
}
hnp_abort(jdata->jobid, exit_code);
}
break;
case ORTE_JOB_STATE_RUNNING:
/* update all procs in job */
update_local_procs_in_job(jdata, jobstate, ORTE_PROC_STATE_RUNNING, 0);