Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simone Rossi
main
Commits
ee2fcda4
Commit
ee2fcda4
authored
Oct 24, 2018
by
Daniele Venzano
Browse files
Set termination reason when an essential service dies
parent
78765ff6
Changes
1
Show whitespace changes
Inline
Side-by-side
zoe_master/scheduler/elastic_scheduler.py
View file @
ee2fcda4
...
...
@@ -330,6 +330,7 @@ class ZoeElasticScheduler:
if
service
.
essential
and
service
.
backend_status
==
service
.
BACKEND_DIE_STATUS
:
log
.
info
(
"Essential service {} ({}) of execution {} died, terminating execution"
.
format
(
service
.
id
,
service
.
name
,
execution
.
id
))
service
.
restarted
()
execution
.
set_error_message
(
"Essential service {} died"
.
format
(
service
.
name
))
self
.
terminate
(
execution
)
break
# Check for executions that need to be re-queued because one of the elastic components died
...
...
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