diff options
author | Angelos Evripiotis <jevripiotis@bloomberg.net> | 2018-11-14 09:50:30 +0000 |
---|---|---|
committer | Angelos Evripiotis <jevripiotis@bloomberg.net> | 2018-11-20 11:17:38 +0000 |
commit | eb2d376f14220ae5bcc60bac2622f2fd865d8b25 (patch) | |
tree | aaf2e07c28714cddd5283931bab2d3a57487f45c /buildstream/_context.py | |
parent | b498cce79bb536eb4ea70ff8588588f647001c4a (diff) | |
download | buildstream-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
Diffstat (limited to 'buildstream/_context.py')
-rw-r--r-- | buildstream/_context.py | 2 |
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, |