increase delay and retries for scheduled task wait
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
1fb3a980f8
commit
a56eba115e
|
@ -11,7 +11,7 @@
|
||||||
triggers:
|
triggers:
|
||||||
- type: 'daily'
|
- type: 'daily'
|
||||||
start_boundary: '2021-01-01T01:00:00'
|
start_boundary: '2021-01-01T01:00:00'
|
||||||
# Also start it right away
|
# Start it right away so we have the binary to run.
|
||||||
- type: registration
|
- type: registration
|
||||||
state: 'present'
|
state: 'present'
|
||||||
enabled: true
|
enabled: true
|
||||||
|
@ -19,16 +19,13 @@
|
||||||
disallow_start_if_on_batteries: false
|
disallow_start_if_on_batteries: false
|
||||||
stop_if_going_on_batteries: false
|
stop_if_going_on_batteries: false
|
||||||
|
|
||||||
- name: Wait for the node build to finish
|
- name: Wait for the node build to finish (SLOW)
|
||||||
win_scheduled_task_stat:
|
win_scheduled_task_stat:
|
||||||
name: '{{ beacon_node_service_name }}-build'
|
name: '{{ beacon_node_service_name }}-build'
|
||||||
register: task_stat
|
register: task_stat
|
||||||
until: |
|
until: |
|
||||||
(
|
(task_stat.state is defined and
|
||||||
task_stat.state is defined and
|
task_stat.state.status != "task_state_running"
|
||||||
task_stat.state.status != "TASK_STATE_RUNNING"
|
) or (task_stat.task_exists == false)
|
||||||
) or (
|
retries: 30
|
||||||
task_stat.task_exists == False
|
delay: 30
|
||||||
)
|
|
||||||
retries: 7
|
|
||||||
delay: 5
|
|
||||||
|
|
Loading…
Reference in New Issue