Support update interval on update job
What does this MR do?
Based on: !2388 (merged)
This is complete and covered with tests
This adds a support for an existing X-GitLab-Trace-Update-Interval
to control
update interval of any process in GitLab Runner:
- This is consistently consumed for
UpdateJob
(this MR introduces that),PatchTrace
(it was introduced in the past) - The final
PATCH
trace update istime.Sleep()
with a last received interval allowing GitLab to control a backoff - The final
PUT
update istime.Sleep()
with a last received interval allowing GitLab to control a backoff
Why was this MR needed?
This is related to discussion about trace handling improvements for Runner: gitlab#232533 (comment 405974271).
This is needed to provide a better maintainability and explicitness of data processing for traces and control a pressure induced by Runner's on GitLab.com.
What are the relevant issue numbers?
Edited by Kamil Trzciński (Back 2025-01-01)