Skip to content

Commit

Permalink
master: add queue timeout
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
roxell committed May 22, 2024
1 parent 7658348 commit 3c15b9f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lava_test_plans/master.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3c15b9f

Please sign in to comment.