Commit 2587fa15 authored by Guilherme Gallo's avatar Guilherme Gallo Committed by Marge Bot
Browse files

gitlab-ci: Add sleep for every `scheduler.jobs.logs` call



Add a time.sleep call between proxy.scheduler.jobs.logs calls, since
they do not block. This will relieve some request pressure on LAVA
dispatchers.

Signed-off-by: Guilherme Gallo's avatarGuilherme Gallo <guilherme.gallo@collabora.com>
Reviewed-by: Tomeu Vizoso's avatarTomeu Vizoso <tomeu.vizoso@collabora.com>
Part-of: <mesa/mesa!12797>
parent 45801e1e
Pipeline #398976 waiting for manual action with stages
......@@ -223,6 +223,11 @@ def follow_job_execution(proxy, job_id):
line_count += len(logs)
# `proxy.scheduler.jobs.logs` does not block, even when there is no
# new log to be fetched. To avoid dosing the LAVA dispatcher
# machine, let's add a sleep to save them some stamina.
time.sleep(5)
def show_job_data(proxy, job_id):
show = _call_proxy(proxy.scheduler.jobs.show, job_id)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment