Your users may well make you regret this, but here's a one-line patch
to do what you described:
diff --git a/src/slurmctld/job_mgr.c b/src/slurmctld/job_mgr.c
index 47c3dd0..9518176 100644
--- a/src/slurmctld/job_mgr.c
+++ b/src/slurmctld/job_mgr.c
@@ -10409,7 +10409,8 @@ static int _update_job(struct job_record
*job_ptr, job_desc_msg_t * job_specs,
else if (job_ptr->time_limit == job_specs->time_limit) {
debug("sched: update_job: new time limit identical to "
"old time limit %u", job_ptr->job_id);
- } else if (authorized ||
+// } else if (authorized ||
+ } else if (
(job_ptr->time_limit > job_specs->time_limit)) {
time_t old_time = job_ptr->time_limit;
if (old_time == INFINITE) /* one year in mins */
Quoting Jay Sullivan <[email protected]>:
Hello,
I apologize if I missed the answer on how to do this, but I am
hoping there is a way.
Scenario: A job is in the RUN state, and the job is taking longer
than expected. The user needs to increase the wall time of the job,
to allow it to complete. The user cannot increase the wall time,
because they do not have "operator" or "admin" privileges.
For many reasons, I do not want to give even "operator" control to
all users, just to give them the ability to adjust their wall time.
So a few questions:
1) Is there a way to do this with the stock configuration?
2) If 1 is not possible is there a way to add a custom
AdminLevel? One where I can set just the commands that users have
access to?
3) If neither of these are possible, can we file an RFE?
Thanks,
-Jay
Jay Sullivan
HPC Systems Administrator
Office: 310-970-3866
Mobile: 424-255-2713