Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos-mynij-dev
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
Mynij
slapos-mynij-dev
Commits
958ddb8d
Commit
958ddb8d
authored
Aug 26, 2014
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slaprunner: processes managed by supervisor never go to backoff state anymore
parent
029c7d14
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
software/slaprunner/common.cfg
software/slaprunner/common.cfg
+2
-2
software/slaprunner/template/listener_slapgrid.py.in
software/slaprunner/template/listener_slapgrid.py.in
+1
-1
software/slaprunner/template/supervisord.conf.in
software/slaprunner/template/supervisord.conf.in
+1
-1
No files found.
software/slaprunner/common.cfg
View file @
958ddb8d
...
@@ -146,7 +146,7 @@ mode = 0644
...
@@ -146,7 +146,7 @@ mode = 0644
[template-supervisord]
[template-supervisord]
recipe = hexagonit.recipe.download
recipe = hexagonit.recipe.download
url = ${:_profile_base_location_}/template/${:filename}
url = ${:_profile_base_location_}/template/${:filename}
md5sum =
538dfcb373cef33f0041f6dca160802f
md5sum =
15500060605c0224d3534af60b07c6be
location = ${buildout:parts-directory}/${:_buildout_section_name_}
location = ${buildout:parts-directory}/${:_buildout_section_name_}
filename = supervisord.conf.in
filename = supervisord.conf.in
download-only = true
download-only = true
...
@@ -155,7 +155,7 @@ mode = 0644
...
@@ -155,7 +155,7 @@ mode = 0644
[template-listener-slapgrid]
[template-listener-slapgrid]
recipe = hexagonit.recipe.download
recipe = hexagonit.recipe.download
url = ${:_profile_base_location_}/template/${:filename}
url = ${:_profile_base_location_}/template/${:filename}
md5sum =
8ab7c2930077017cc51daeeaff899888
md5sum =
49d50410cf7467175a841eb7cd0d93d4
location = ${buildout:parts-directory}/${:_buildout_section_name_}
location = ${buildout:parts-directory}/${:_buildout_section_name_}
filename = listener_slapgrid.py.in
filename = listener_slapgrid.py.in
download-only = true
download-only = true
...
...
software/slaprunner/template/listener_slapgrid.py.in
View file @
958ddb8d
...
@@ -25,7 +25,7 @@ def write_slapgrid_result(process):
...
@@ -25,7 +25,7 @@ def write_slapgrid_result(process):
info = server.supervisor.getProcessInfo(process)
info = server.supervisor.getProcessInfo(process)
result = dict()
result = dict()
result['last_build'] = datetime.datetime.fromtimestamp(info['stop']).strftime("%Y-%m-%d %H:%M:%S")
result['last_build'] = datetime.datetime.fromtimestamp(info['stop']).strftime("%Y-%m-%d %H:%M:%S")
result['success'] =
(1 if info['statename'] in ("FATAL", "STARTING", "BACKOFF") else info['exitstatus'])
result['success'] =
info['exitstatus']
open(json_files[process], 'w').write(json.dumps(result))
open(json_files[process], 'w').write(json.dumps(result))
...
...
software/slaprunner/template/supervisord.conf.in
View file @
958ddb8d
...
@@ -44,6 +44,6 @@ environment = PATH="{{- supervisord['path'] -}}"
...
@@ -44,6 +44,6 @@ environment = PATH="{{- supervisord['path'] -}}"
[eventlistener:listener-slapgrid]
[eventlistener:listener-slapgrid]
command = {{ listener_slapgrid }}
command = {{ listener_slapgrid }}
events = PROCESS_STATE_EXITED
,PROCESS_STATE_FATAL,PROCESS_STATE_BACKOFF
events = PROCESS_STATE_EXITED
stdout_logfile = {{ supervisord['no_logfile'] }}
stdout_logfile = {{ supervisord['no_logfile'] }}
stderr_logfile = {{ supervisord['stderr_logfile'] }}
stderr_logfile = {{ supervisord['stderr_logfile'] }}
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