Skip to content

Commit fbfa9f5

Browse files
RahuldrabitCopilot
andcommitted
refactor: improve get_container_runtime timing and error handling
Address Copilot AI review feedback: 1. Fix timing precision: Use time.monotonic() deadline and sleep only remaining time to ensure max_wait is an actual upper bound. Previous implementation could exceed max_wait by up to poll_interval. 2. Add exception handling: Catch transient API errors during polling and continue retrying until deadline, similar to wait_for_ready(). Log warnings for persistent errors. 3. Update docstring to document exception handling behavior. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 2c5f476 commit fbfa9f5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

aiopslab-applications

0 commit comments

Comments
 (0)