Skip to content

Support update interval on update job

Kamil Trzciński requested to merge support-update-interval-on-update-job into master

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:

  1. This is consistently consumed for UpdateJob (this MR introduces that), PatchTrace (it was introduced in the past)
  2. The final PATCH trace update is time.Sleep() with a last received interval allowing GitLab to control a backoff
  3. The final PUT update is time.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

Merge request reports