astarte-platform / astarte

Core Astarte Repository
https://docs.astarte-platform.org/
Apache License 2.0
238 stars 46 forks source link

HK API: allow longer timeouts for calls to backend #906

Closed Annopaolo closed 6 months ago

Annopaolo commented 6 months ago

Sometimes, on long operations (e.g. realm creation or deletion), synchronous calls may seem to fail because the underlying RPC to HK backend times out. Introduce the HOUSEKEEPING_API_RPC_TIMEOUT env var to allow setting a longer timeout (in milliseconds). Default to 5 seconds, as before.

codecov[bot] commented 6 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (a882ec1) 68.34% compared to head (45f67d9) 68.35%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #906 +/- ## ======================================= Coverage 68.34% 68.35% ======================================= Files 274 274 Lines 7067 7069 +2 ======================================= + Hits 4830 4832 +2 Misses 2237 2237 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.