Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Slurm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tud-zih-energy
Slurm
Commits
4066aa86
Commit
4066aa86
authored
7 years ago
by
Tim Wickberg
Browse files
Options
Downloads
Patches
Plain Diff
Rename get_last_state_write() to _get_last_job_state_write().
parent
192eeb9b
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/slurmctld/.state_save.c.swo
+0
-0
0 additions, 0 deletions
src/slurmctld/.state_save.c.swo
src/slurmctld/job_mgr.c
+3
-2
3 additions, 2 deletions
src/slurmctld/job_mgr.c
src/slurmctld/slurmctld.h
+0
-4
0 additions, 4 deletions
src/slurmctld/slurmctld.h
with
3 additions
and
6 deletions
src/slurmctld/.state_save.c.swo
deleted
100644 → 0
+
0
−
0
View file @
192eeb9b
File deleted
This diff is collapsed.
Click to expand it.
src/slurmctld/job_mgr.c
+
3
−
2
View file @
4066aa86
...
...
@@ -201,6 +201,7 @@ static uint32_t _max_switch_wait(uint32_t input_wait);
static void _notify_srun_missing_step(struct job_record *job_ptr, int node_inx,
time_t now, time_t node_boot_time);
static int _open_job_state_file(char **state_file);
static time_t _get_last_job_state_write_time(void);
static void _pack_job_for_ckpt (struct job_record *job_ptr, Buf buffer);
static void _pack_default_job_details(struct job_record *job_ptr,
Buf buffer,
...
...
@@ -675,7 +676,7 @@ int dump_all_job_state(void)
/* Check that last state file was written at expected time.
* This is a check for two slurmctld daemons running at the same
* time in primary mode (a split-brain problem). */
last_state_file_time = get_last_state_write_time();
last_state_file_time =
_
get_last_
job_
state_write_time();
if (last_file_write_time && last_state_file_time &&
(last_file_write_time != last_state_file_time)) {
error("Bad job state save file time. We wrote it at time %u, "
...
...
@@ -855,7 +856,7 @@ extern void backup_slurmctld_restart(void)
/* Return the time stamp in the current job state save file, 0 is returned on
* error */
extern
time_t get_last_state_write_time(void)
static
time_t
_
get_last_
job_
state_write_time(void)
{
int data_allocated, data_read = 0, error_code = SLURM_SUCCESS;
uint32_t data_size = 0;
...
...
This diff is collapsed.
Click to expand it.
src/slurmctld/slurmctld.h
+
0
−
4
View file @
4066aa86
...
...
@@ -943,10 +943,6 @@ extern void set_job_tres_alloc_str(struct job_record *job_ptr,
* This function can be called multiple times. */
extern
void
backup_slurmctld_restart
(
void
);
/* Return the time stamp in the current job state save file, 0 is returned on
* error */
extern
time_t
get_last_state_write_time
(
void
);
/* Complete a batch job requeue logic after all steps complete so that
* subsequent jobs appear in a separate accounting record. */
extern
void
batch_requeue_fini
(
struct
job_record
*
job_ptr
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment