From 245f1d00b333dc5e2c42c216d04a40087feec979 Mon Sep 17 00:00:00 2001 From: Anders Roxell Date: Tue, 21 May 2024 16:44:30 +0200 Subject: [PATCH] master: add queue timeout LAVA jobs can get stuck for weeks if the priority isn't set properly which makes it pointless running those jobs after a week/month when the artefacts isn't available anymore or when its to late (someone else already done it)to report a bug. Another aspect is that LAVA eat up a lot of time just parsing the queue to find the next job to schedule. By adding a LAVA queue timeout to the job so it gets canceled if not scheduled in time, makes the queue length manageable. Signed-off-by: Anders Roxell --- lava_test_plans/master.jinja2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lava_test_plans/master.jinja2 b/lava_test_plans/master.jinja2 index 82806995..57bc83aa 100644 --- a/lava_test_plans/master.jinja2 +++ b/lava_test_plans/master.jinja2 @@ -34,6 +34,10 @@ timeouts: actions: finalize: seconds: 60 +{% if LAVA_QUEUE_TIMEOUT is defined %}} + queue: + hours: {{ LAVA_QUEUE_TIMEOUT }} +{% endif %} {% if use_context is defined and use_context == true %} context: