Skip to content

Commit

Permalink
add safety margin for etcd leases
Browse files Browse the repository at this point in the history
Change-Id: Ib32c7b9bea282f88bf4bb5c7e728f675ab76fb3c
  • Loading branch information
andmat900 committed Mar 7, 2025
1 parent fc92f05 commit 58bbae3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/src/etos_api/routers/v0/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,9 @@ async def _start(etos: StartEtosRequest, span: Span) -> dict:
log_area_provider=etos.log_area_provider,
)
try:
await configure_testrun(config, etos_library.debug.default_test_result_timeout)
# 10 minutes safety margin for etcd configuration entries
etcd_lease_expiration_time = etos_library.debug.default_test_result_timeout + 10 * 60
await configure_testrun(config, etcd_lease_expiration_time)
except AssertionError as exception:
LOGGER.critical(exception)
raise HTTPException(
Expand Down

0 comments on commit 58bbae3

Please sign in to comment.