1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-09-01 19:02:31 +01:00

framework: Add bail_on_init_failure run configuration

This maintains the default behaviour of bailing out immediately if any workload
fails in initialize(), but adds a setting, bail_on_init_failure, to change this
behaviour optionally. This can be useful where WA is being used more as a batch
processor.
This commit is contained in:
Brendan Jackman
2017-10-23 16:41:28 +01:00
parent 4a001713bb
commit 9fa1b133dc
2 changed files with 43 additions and 3 deletions

View File

@@ -779,6 +779,19 @@ class RunConfiguration(Configuration):
.. note:: this number does not include the original attempt
''',
),
ConfigurationPoint(
'bail_on_init_failure',
kind=bool,
default=True,
description='''
When jobs fail during their main setup and run phases, WA will
continue attempting to run the remaining jobs. However, by default,
if they fail during their early initialization phase, the entire run
will end without continuing to run jobs. Setting this to ``False``
means that WA will instead skip all the jobs from the job spec that
failed, but continue attempting to run others.
'''
),
ConfigurationPoint(
'result_processors',
kind=toggle_set,