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
ffbe95ff
Commit
ffbe95ff
authored
19 years ago
by
Moe Jette
Browse files
Options
Downloads
Patches
Plain Diff
Log if slurmctld background loop takes more than one second
parent
e99f2d2d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/slurmctld/controller.c
+5
-0
5 additions, 0 deletions
src/slurmctld/controller.c
with
5 additions
and
0 deletions
src/slurmctld/controller.c
+
5
−
0
View file @
ffbe95ff
...
...
@@ -698,6 +698,7 @@ static void *_slurmctld_background(void *no_data)
static
time_t
last_assert_primary_time
;
time_t
now
;
int
ping_interval
;
DEF_TIMERS
;
/* Locks: Read config */
slurmctld_lock_t
config_read_lock
=
{
...
...
@@ -734,6 +735,7 @@ static void *_slurmctld_background(void *no_data)
sleep
(
1
);
now
=
time
(
NULL
);
START_TIMER
;
if
(
slurmctld_config
.
shutdown_time
)
{
int
i
;
...
...
@@ -824,6 +826,9 @@ static void *_slurmctld_background(void *no_data)
}
unlock_slurmctld
(
config_read_lock
);
END_TIMER
;
if
(
DELTA_TIMER
>
1000000
)
/* more than one second */
info
(
"_slurmctld_background loop %s"
,
TIME_STR
);
}
debug3
(
"_slurmctld_background shutting down"
);
...
...
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