Thanks Paweł Wieczorek,
I'm not aware this new feature, magic job by you guys, thanks.
-----Original Message----- From: lava-users-request@lists.lavasoftware.org lava-users-request@lists.lavasoftware.org Sent: Thursday, October 12, 2023 8:00 AM To: lava-users@lists.lavasoftware.org Subject: [EXT] lava-users Digest, Vol 61, Issue 10
Caution: This is an external email. Please take care when clicking links or opening attachments. When in doubt, report the message using the 'Report this email' button
Send lava-users mailing list submissions to lava-users@lists.lavasoftware.org
To subscribe or unsubscribe via email, send a message with subject or body 'help' to lava-users-request@lists.lavasoftware.org
You can reach the person managing the list at lava-users-owner@lists.lavasoftware.org
When replying, please edit your Subject line so it is more specific than "Re: Contents of lava-users digest..."
Today's Topics:
1. Re: About timeouts. (Paweł Wieczorek)
----------------------------------------------------------------------
Message: 1 Date: Wed, 11 Oct 2023 12:43:51 +0200 From: Paweł Wieczorek pawiecz@collabora.com Subject: [lava-users] Re: About timeouts. To: lava-users@lists.lavasoftware.org Message-ID: 32bdd741-289a-ae09-d994-f73b069a892f@collabora.com Content-Type: multipart/alternative; boundary="------------4xeVji058aNHAzBX687S773k"
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