From dfea63d034536e2b9c2a9b48865dd2e196124382 Mon Sep 17 00:00:00 2001 From: Moe Jette <jette1@llnl.gov> Date: Tue, 23 Nov 2010 22:17:32 +0000 Subject: [PATCH] permit an admin to change a job at will between user and admin hold --- src/slurmctld/job_mgr.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/slurmctld/job_mgr.c b/src/slurmctld/job_mgr.c index 122fdc964e3..f9f521dc240 100644 --- a/src/slurmctld/job_mgr.c +++ b/src/slurmctld/job_mgr.c @@ -6258,9 +6258,11 @@ int update_job(job_desc_msg_t * job_specs, uid_t uid) error_code = ESLURM_DISABLED; else if (job_ptr->priority == job_specs->priority) { debug("update_job: setting priority to current value"); - if ((job_ptr->priority == 0) && authorized && - (job_specs->alloc_sid & ALLOC_SID_USER_HOLD)) { - job_ptr->state_reason = WAIT_HELD_USER; + if ((job_ptr->priority == 0) && authorized) { + if (job_specs->alloc_sid & ALLOC_SID_USER_HOLD) + job_ptr->state_reason = WAIT_HELD_USER; + else + job_ptr->state_reason = WAIT_HELD; } } else if (authorized || (job_ptr->priority > job_specs->priority)) { -- GitLab