summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelos Evripiotis <jevripiotis@bloomberg.net>2018-11-14 09:50:30 +0000
committerAngelos Evripiotis <jevripiotis@bloomberg.net>2018-11-15 10:54:41 +0000
commit31fd24b610097328245197b9aa9a544378fede4e (patch)
treefb45cec79370bc1144ff8acdced8b7c6bc8192c1
parent67d855d1e3f9446084c6a314983a649cf50e75c8 (diff)
downloadbuildstream-31fd24b610097328245197b9aa9a544378fede4e.tar.gz
_context: allow 'terminate' for scheduler.on-error
Enable this option of 'terminate', which is mentioned in userconfig.yaml and handled in _frontend/app.py:_handle_failure(). It appears to have been left out of the valid_actions as an oversight. Originally introduced in https://gitlab.com/BuildStream/buildstream/commit/2622d5da9bd9fefd87436613d6e3e9770fdd0f28
-rw-r--r--buildstream/_context.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/_context.py b/buildstream/_context.py
index 876b74712..6431559f8 100644
--- a/buildstream/_context.py
+++ b/buildstream/_context.py
@@ -222,7 +222,7 @@ class Context():
profile_end(Topics.LOAD_CONTEXT, 'load')
- valid_actions = ['continue', 'quit']
+ valid_actions = ['continue', 'quit', 'terminate']
if self.sched_error_action not in valid_actions:
provenance = _yaml.node_get_provenance(scheduler, 'on-error')
raise LoadError(LoadErrorReason.INVALID_DATA,