mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-03-22 10:38:37 +00:00
config/core: Remove by_spec
reboot policy
This reboot policy was left over from previous versions of WA and is no longer relevant.
This commit is contained in:
parent
c2b039ba2d
commit
9d8f1ec68e
@ -54,12 +54,11 @@ class RebootPolicy(object):
|
|||||||
:as_needed: Only reboot the device if it becomes unresponsive, or needs to be flashed, etc.
|
:as_needed: Only reboot the device if it becomes unresponsive, or needs to be flashed, etc.
|
||||||
:initial: The device will be rebooted when the execution first starts, just before
|
:initial: The device will be rebooted when the execution first starts, just before
|
||||||
executing the first workload spec.
|
executing the first workload spec.
|
||||||
:each_spec: The device will be rebooted before running a new workload spec.
|
|
||||||
:each_iteration: The device will be rebooted before each new iteration.
|
:each_iteration: The device will be rebooted before each new iteration.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
valid_policies = ['never', 'as_needed', 'initial', 'each_spec', 'each_iteration']
|
valid_policies = ['never', 'as_needed', 'initial', 'each_iteration']
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def from_pod(pod):
|
def from_pod(pod):
|
||||||
@ -82,10 +81,6 @@ class RebootPolicy(object):
|
|||||||
def perform_initial_boot(self):
|
def perform_initial_boot(self):
|
||||||
return self.policy not in ['never', 'as_needed']
|
return self.policy not in ['never', 'as_needed']
|
||||||
|
|
||||||
@property
|
|
||||||
def reboot_on_each_spec(self):
|
|
||||||
return self.policy in ['each_spec', 'each_iteration']
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def reboot_on_each_iteration(self):
|
def reboot_on_each_iteration(self):
|
||||||
return self.policy == 'each_iteration'
|
return self.policy == 'each_iteration'
|
||||||
@ -602,12 +597,6 @@ class RunConfiguration(Configuration):
|
|||||||
The device will be rebooted when the execution first starts,
|
The device will be rebooted when the execution first starts,
|
||||||
just before executing the first workload spec.
|
just before executing the first workload spec.
|
||||||
|
|
||||||
``"each_spec"``
|
|
||||||
The device will be rebooted before running a new workload spec.
|
|
||||||
|
|
||||||
.. note:: this acts the same as each_iteration when execution order
|
|
||||||
is set to by_iteration
|
|
||||||
|
|
||||||
``"each_iteration"``
|
``"each_iteration"``
|
||||||
The device will be rebooted before each new iteration.
|
The device will be rebooted before each new iteration.
|
||||||
'''),
|
'''),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user