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-20 11:17:38 +0000
commiteb2d376f14220ae5bcc60bac2622f2fd865d8b25 (patch)
treeaaf2e07c28714cddd5283931bab2d3a57487f45c
parentb498cce79bb536eb4ea70ff8588588f647001c4a (diff)
downloadbuildstream-eb2d376f14220ae5bcc60bac2622f2fd865d8b25.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 b39c82b1d..d40210f20 100644
--- a/buildstream/_context.py
+++ b/buildstream/_context.py
@@ -230,7 +230,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,