Skip to content

Commit

Permalink
don't wait on neg size before adding it to the backend service
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiitk committed May 25, 2024
1 parent dbfc419 commit f4e2772
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion framework/infrastructure/gcp/compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,8 @@ def wait_for_network_endpoint_group(
retryer = retryers.constant_retryer(
wait_fixed=datetime.timedelta(seconds=wait_sec),
timeout=datetime.timedelta(seconds=timeout_sec),
check_result=lambda neg: neg and neg.get("size", 0) > 0,
# TODO(sergiitk): sergiitk fix this
check_result=lambda neg: neg and neg.get("size", 0) >= 0,
)
network_endpoint_group = retryer(
self._retry_load_network_endpoint_group, name, zone
Expand Down

0 comments on commit f4e2772

Please sign in to comment.