Commit 71df4fae authored by Marshall Garey's avatar Marshall Garey Committed by Brian Christiansen
Browse files

Ensure x11 is setup before launching a job step

srun waits for the prolog to finish before launching a job step.
In _is_prolog_finished(), slurmctld checks the state reason:

	if (job_ptr) {
		is_running = (job_ptr->state_reason != WAIT_PROLOG);
	}

But if the job is updated during the job prolog, then _update_job() will
change the state_reason, and then slurmctld will tell srun that the
prolog is completed even if it isn't. If srun launches a job step before
the extern sets up x11, then the job step won't have x11 information. To
fix this, don't change state_reason in _update_job() if it equals
WAIT_PROLOG.

Bug 7525
parent d0bf6d68
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment