1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-09-01 10:52:33 +01:00

Added retries

Failed jobs will now be automatically retired. This is controlled by two
new settings:

retry_on_status - a list of statuses which will be consided failures and
                  result in a retry
max_retries - number of retries before giving up
This commit is contained in:
Sergei Trofimov
2015-06-18 16:36:56 +01:00
parent 51c5ef1520
commit ccea63555c
5 changed files with 70 additions and 3 deletions

View File

@@ -60,6 +60,9 @@ class Mock(object):
def __call__(self, *args, **kwargs):
pass
def __iter__(self):
return iter([])
class BadDeviceMeta(DeviceMeta):
@@ -161,6 +164,7 @@ class RunnerTest(TestCase):
context = Mock()
context.reboot_policy = RebootPolicy(reboot_policy)
context.config.workload_specs = workloads
context.config.retry_on_status = []
instrument = _instantiate(SignalCatcher)
instrumentation.install(instrument)