Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Roque
slapos.core
Commits
ad06784b
Commit
ad06784b
authored
Mar 31, 2022
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapgrid: Clarify some comments and log messages
parent
86b1e04c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
slapos/grid/slapgrid.py
slapos/grid/slapgrid.py
+3
-3
No files found.
slapos/grid/slapgrid.py
View file @
ad06784b
...
...
@@ -726,8 +726,8 @@ stderr_logfile_backups=1
else
:
command
.
append
(
'--'
+
option
)
command
.
append
(
str
(
value
))
# Compute timeout as the sum of all promise timeouts + empirical margin.
promises
=
plugins
+
len
(
listifdir
(
legacy_promise_dir
))
# Add a timeout margin to let the process kill the promises and cleanup
timeout
=
promises
*
self
.
promise_timeout
+
10
# The runpromise script uses stderr exclusively to propagate exception
# messages. It otherwise redirects stderr to stdout so that all outputs
...
...
@@ -754,10 +754,10 @@ stderr_logfile_backups=1
elif
process
.
returncode
:
raise
Exception
(
stderr
)
elif
stderr
:
self
.
logger
.
warn
(
'
Promise runner unexpected
output:
\
n
%s'
,
stderr
)
self
.
logger
.
warn
(
'
Unexpected promise runner
output:
\
n
%s'
,
stderr
)
except
subprocess
.
TimeoutExpired
:
killProcessTree
(
process
.
pid
,
self
.
logger
)
#
The timeout margin was exceeded but this should be infrequent
#
If this happens, it might be that the timeout margin is too small.
raise
Exception
(
'Promise runner timed out'
)
else
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment