Hi, guys, I have a question about timeout:
1) For next job, the boot action block's timeout will be 5 minutes, while pdu-reboot timeout will be 10 seconds. timeouts: job: minutes: 10 action: minutes: 5 actions: pdu-reboot: seconds: 10 connection: minutes: 2
actions: - boot: failure_retry: 4 method: bootloader bootloader: u-boot commands: [] prompts: ['=>']
2. But after we add timeouts to boot actions, the boot action timeout is 2 minutes now, that's OK. But the individual pdu-reboot timeout will be the left time of 2 minutes. actions: - boot: failure_retry: 4 method: bootloader bootloader: u-boot commands: [] prompts: ['=>'] timeout: minutes: 2
My question is: for the second item, if possible we could let pdu-reboot remain the value "10 seconds"?
Above is just an example to explain my question. What I really want to achieve is: sometimes, I want to specify the timeout for "uboot wait for interrupt", I want to fail that individual sub-action quickly, then we are possible retry this action quickly without wait for the whole boot action timeout.
Any idea? Thanks.
Regards, Larry
Hi Larry,
On 11.10.2023 08:04, Larry Shen wrote:
Hi, guys, I have a question about timeout:
- For next job, the boot action block’s timeout will be 5 minutes,
while pdu-reboot timeout will be 10 seconds.
timeouts:
job:
minutes: 10
action:
minutes: 5
actions:
pdu-reboot:
seconds: 10
connection:
minutes: 2
actions:
- boot:
failure_retry: 4
method: bootloader
bootloader: u-boot
commands: []
prompts: ['=>']
- But after we add timeouts to boot actions, the boot action timeout
is 2 minutes now, that’s OK. But the individual pdu-reboot timeout will be the left time of 2 minutes.
actions:
- boot:
failure_retry: 4
method: bootloader
bootloader: u-boot
commands: []
prompts: ['=>']
timeout:
minutes: 2
My question is: for the second item, if possible we could let pdu-reboot remain the value “10 seconds”?
Above is just an example to explain my question. What I really want to achieve is: sometimes, I want to specify the timeout for “uboot wait for interrupt”, I want to fail that individual sub-action quickly, then we are possible retry this action quickly without wait for the whole boot action timeout.
You can set action block timeouts also for individual actions [0][1] - in your case it could look like:
actions: - boot: failure_retry: 4 method: bootloader bootloader: u-boot commands: [] prompts: ['=>'] timeout: minutes: 2 timeouts: pdu-reboot: seconds: 10
This feature should be available if you're running LAVA 2023.01 or newer [2].
[0] https://lava.collabora.dev/static/docs/v2/actions-timeout.html#individual-ac... [1] https://lava.collabora.dev/static/docs/v2/timeouts.html#action-block-overrid... [2] https://gitlab.com/lava/lava/-/commit/15650f11aa10931c9b2a148ae16561b748a38f...
Kind regards, Paweł
Any idea? Thanks.
Regards,
Larry
lava-users mailing list --lava-users@lists.lavasoftware.org To unsubscribe send an email tolava-users-leave@lists.lavasoftware.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
lava-users@lists.lavasoftware.org