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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user