diff --git a/src/slurmctld/job_mgr.c b/src/slurmctld/job_mgr.c index b592450bc5921c941712d08b8fe6cbe305b9cdc3..9572a971ca27b098aac15fa5440a8716f436075a 100644 --- a/src/slurmctld/job_mgr.c +++ b/src/slurmctld/job_mgr.c @@ -11781,15 +11781,14 @@ extern void build_cg_bitmap(struct job_record *job_ptr) /* job_hold_requeue() * - * Requeue the job either in JOB_SPECIAL_EXIT state - * in which is put on hold or if JOB_REQUEUE_HOLD is - * specified don't change its state. The requeue - * can happen directly from job_requeue() or from - * job_epilog_complete() after the last component - * has finished. + * Requeue the job based upon its current state. + * If JOB_SPECIAL_EXIT then requeue and hold with JOB_SPECIAL_EXIT state. + * If JOB_REQUEUE_HOLD then requeue and hold. + * If JOB_REQUEUE then requeue and let it run again. + * The requeue can happen directly from job_requeue() or from + * job_epilog_complete() after the last component has finished. */ -void -job_hold_requeue(struct job_record *job_ptr) +extern void job_hold_requeue(struct job_record *job_ptr) { uint32_t state; uint32_t flags; diff --git a/src/slurmctld/slurmctld.h b/src/slurmctld/slurmctld.h index 4c9f5769d04e9f31d1b998cf04c2ab883ceb2dcc..8bcc15ea2b0c2cef544cc18db2d548066c918938 100644 --- a/src/slurmctld/slurmctld.h +++ b/src/slurmctld/slurmctld.h @@ -1112,6 +1112,18 @@ extern void job_fini (void); */ extern int job_fail(uint32_t job_id, uint16_t job_state); + +/* job_hold_requeue() + * + * Requeue the job based upon its current state. + * If JOB_SPECIAL_EXIT then requeue and hold with JOB_SPECIAL_EXIT state. + * If JOB_REQUEUE_HOLD then requeue and hold. + * If JOB_REQUEUE then requeue and let it run again. + * The requeue can happen directly from job_requeue() or from + * job_epilog_complete() after the last component has finished. + */ +extern void job_hold_requeue(struct job_record *job_ptr); + /* * determine if job is ready to execute per the node select plugin * IN job_id - job to test @@ -2028,11 +2040,4 @@ extern bool validate_super_user(uid_t uid); */ extern bool validate_operator(uid_t uid); -/* job_hold_requeue() - requeue a job in hold or requeue_exit - * state. - * - * IN - job record - */ -extern void job_hold_requeue(struct job_record *job_ptr); - #endif /* !_HAVE_SLURMCTLD_H */