HomePhabricator

custom_script_proxy: increase polling sleep

Description

custom_script_proxy: increase polling sleep

  • When polling job results (scripts) retry every 200ms instead of every 50ms. There is no real reason to poll more often.
  • Move the sleep before the first call, as most time the get stats script runs within 200ms, it should be able to return the results at the first request.
  • For reference we're polling the data every 2 minutes from prometheus.

Change-Id: I6a54657c6f1d798f8456c07f803ac0449e063610

Details

Provenance
VolansAuthored on Oct 17 2022, 6:15 PM
Parents
rOSNE392c028f9feb: Network MTU check, remove 9216 from allowlist
Branches
Unknown
Tags
Unknown
References
refs/changes/25/843525/1
ChangeId
I6a54657c6f1d798f8456c07f803ac0449e063610