Commit fbfa9f5
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
Submodule aiopslab-applications updated 94 files
- BlueprintHotelReservation/kubernetes/frontend/frontend-service-deployment.yaml+42
- BlueprintHotelReservation/kubernetes/frontend/frontend-service-env-configmap.yaml+14
- BlueprintHotelReservation/kubernetes/frontend/frontend-service-service.yaml+21
- BlueprintHotelReservation/kubernetes/geo/geo-db-deployment.yaml+36
- BlueprintHotelReservation/kubernetes/geo/geo-db-service.yaml+21
- BlueprintHotelReservation/kubernetes/geo/geo-service-deployment.yaml+42
- BlueprintHotelReservation/kubernetes/geo/geo-service-env-configmap.yaml+10
- BlueprintHotelReservation/kubernetes/geo/geo-service-service.yaml+21
- BlueprintHotelReservation/kubernetes/jaeger/jaeger-deployment.yaml+38
- BlueprintHotelReservation/kubernetes/jaeger/jaeger-service.yaml+28
- BlueprintHotelReservation/kubernetes/profile/profile-cache-deployment.yaml+36
- BlueprintHotelReservation/kubernetes/profile/profile-cache-service.yaml+21
- BlueprintHotelReservation/kubernetes/profile/profile-db-deployment.yaml+36
- BlueprintHotelReservation/kubernetes/profile/profile-db-service.yaml+21
- BlueprintHotelReservation/kubernetes/profile/profile-service-deployment.yaml+42
- BlueprintHotelReservation/kubernetes/profile/profile-service-env-configmap.yaml+11
- BlueprintHotelReservation/kubernetes/profile/profile-service-service.yaml+21
- BlueprintHotelReservation/kubernetes/rate/rate-cache-deployment.yaml+36
- BlueprintHotelReservation/kubernetes/rate/rate-cache-service.yaml+21
- BlueprintHotelReservation/kubernetes/rate/rate-db-deployment.yaml+36
- BlueprintHotelReservation/kubernetes/rate/rate-db-service.yaml+21
- BlueprintHotelReservation/kubernetes/rate/rate-service-deployment.yaml+42
- BlueprintHotelReservation/kubernetes/rate/rate-service-env-configmap.yaml+11
- BlueprintHotelReservation/kubernetes/rate/rate-service-service.yaml+21
- BlueprintHotelReservation/kubernetes/recommend/recomd-db-deployment.yaml+36
- BlueprintHotelReservation/kubernetes/recommend/recomd-db-service.yaml+21
- BlueprintHotelReservation/kubernetes/recommend/recomd-service-deployment.yaml+42
- BlueprintHotelReservation/kubernetes/recommend/recomd-service-env-configmap.yaml+10
- BlueprintHotelReservation/kubernetes/recommend/recomd-service-service.yaml+21
- BlueprintHotelReservation/kubernetes/reservation/reserv-cache-deployment.yaml+36
- BlueprintHotelReservation/kubernetes/reservation/reserv-cache-service.yaml+21
- BlueprintHotelReservation/kubernetes/reservation/reserv-db-deployment.yaml+36
- BlueprintHotelReservation/kubernetes/reservation/reserv-db-service.yaml+21
- BlueprintHotelReservation/kubernetes/reservation/reserv-service-deployment.yaml+42
- BlueprintHotelReservation/kubernetes/reservation/reserv-service-env-configmap.yaml+11
- BlueprintHotelReservation/kubernetes/reservation/reserv-service-service.yaml+21
- BlueprintHotelReservation/kubernetes/rpc-configmap.yaml+10
- BlueprintHotelReservation/kubernetes/search/search-service-deployment.yaml+42
- BlueprintHotelReservation/kubernetes/search/search-service-env-configmap.yaml+11
- BlueprintHotelReservation/kubernetes/search/search-service-service.yaml+21
- BlueprintHotelReservation/kubernetes/user/user-db-deployment.yaml+36
- BlueprintHotelReservation/kubernetes/user/user-db-service.yaml+21
- BlueprintHotelReservation/kubernetes/user/user-service-deployment.yaml+42
- BlueprintHotelReservation/kubernetes/user/user-service-env-configmap.yaml+10
- BlueprintHotelReservation/kubernetes/user/user-service-service.yaml+21
- BlueprintHotelReservation/wlgen/wlgen_proc-configmap.yaml+17
- BlueprintHotelReservation/wlgen/wlgen_proc-job.yaml+26
- FleetCast+1-1
- astronomy-shop+1-1
- flight-ticket+1-1
- flower/kubernetes/clientapp/clientapp-1-deployment.yaml+1
- flower/kubernetes/clientapp/clientapp-2-deployment.yaml+1
- flower/kubernetes/serverapp/serverapp-pod.yaml+1
- flower/kubernetes/superlink/superlink-deployment.yaml+1
- flower/kubernetes/supernode/supernode-1-deployment.yaml+1
- flower/kubernetes/supernode/supernode-2-deployment.yaml+1
- flower/train/pyproject.toml+2-2
- hotelReservation/kubernetes/consul/consul-deployment.yaml+1
- hotelReservation/kubernetes/frontend/frontend-deployment.yaml+1
- hotelReservation/kubernetes/geo/geo-deployment.yaml+1
- hotelReservation/kubernetes/geo/geo-persistent-volume.yaml-14
- hotelReservation/kubernetes/geo/geo-pvc.yaml-1
- hotelReservation/kubernetes/geo/mongodb-geo-deployment.yaml+1
- hotelReservation/kubernetes/jaeger/jaeger-deployment.yaml+1
- hotelReservation/kubernetes/profile/memcached-profile-deployment.yaml+1
- hotelReservation/kubernetes/profile/mongodb-profile-deployment.yaml+1
- hotelReservation/kubernetes/profile/profile-deployment.yaml+1
- hotelReservation/kubernetes/profile/profile-persistent-volume.yaml-17
- hotelReservation/kubernetes/profile/profile-pvc.yaml-1
- hotelReservation/kubernetes/rate/memcached-rate-deployment.yaml+1
- hotelReservation/kubernetes/rate/mongodb-rate-deployment.yaml+1
- hotelReservation/kubernetes/rate/rate-deployment.yaml+1
- hotelReservation/kubernetes/rate/rate-persistent-volume.yaml-14
- hotelReservation/kubernetes/rate/rate-pvc.yaml-1
- hotelReservation/kubernetes/reccomend/mongodb-recommendation-deployment.yaml+1
- hotelReservation/kubernetes/reccomend/recommendation-deployment.yaml+1
- hotelReservation/kubernetes/reccomend/recommendation-persistent-volume.yaml-14
- hotelReservation/kubernetes/reccomend/recommendation-pvc.yaml-1
- hotelReservation/kubernetes/reserve/memcached-reservation-deployment.yaml+1
- hotelReservation/kubernetes/reserve/mongodb-reservation-deployment.yaml+1
- hotelReservation/kubernetes/reserve/reservation-deployment.yaml+1
- hotelReservation/kubernetes/reserve/reservation-persistent-volume.yaml-14
- hotelReservation/kubernetes/reserve/reservation-pvc.yaml-1
- hotelReservation/kubernetes/search/search-deployment.yaml+1
- hotelReservation/kubernetes/user/mongodb-user-deployment.yaml+1
- hotelReservation/kubernetes/user/user-deployment.yaml+1
- hotelReservation/kubernetes/user/user-persistent-volume.yaml-14
- hotelReservation/kubernetes/user/user-pvc.yaml-1
- socialNetwork/helm-chart/socialnetwork/tmpcharts-67806/mcrouter-0.3.0.tgz
- socialNetwork/helm-chart/socialnetwork/tmpcharts-67806/mongodb-sharded-6.0.1.tgz
- socialNetwork/helm-chart/socialnetwork/tmpcharts-76120/mcrouter-0.3.0.tgz
- socialNetwork/helm-chart/socialnetwork/tmpcharts-76120/mongodb-sharded-6.0.1.tgz
- socialNetwork/helm-chart/socialnetwork/values.yaml+1-1
- train-ticket+1-1
0 commit comments