mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-09-01 19:02:31 +01:00
utils/types: better enum class member setting
- What used to be enum.values is now enum.levels. - Add enum.names and enum.values that are lists of enum's levels' names and values respectively. - Add a check on creation to make sure that provided level names do not conflict with the atomatically created members.
This commit is contained in:
@@ -741,7 +741,7 @@ class RunConfiguration(Configuration):
|
||||
'retry_on_status',
|
||||
kind=list_of(Status),
|
||||
default=['FAILED', 'PARTIAL'],
|
||||
allowed_values=Status.values[Status.RUNNING.value:],
|
||||
allowed_values=Status.levels[Status.RUNNING.value:],
|
||||
description='''
|
||||
This is list of statuses on which a job will be considered to have
|
||||
failed and will be automatically retried up to ``max_retries``
|
||||
|
Reference in New Issue
Block a user