Skip to content

Harden IB Gateway readiness check - #8

Merged
Pigbibi merged 1 commit into
mainfrom
harden-ibkr-gateway-readiness-check
Apr 20, 2026
Merged

Harden IB Gateway readiness check#8
Pigbibi merged 1 commit into
mainfrom
harden-ibkr-gateway-readiness-check

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Apr 20, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • install ib_insync in the gateway image
  • make the readiness script prefer a full ib_insync API connection and managedAccounts check
  • keep the existing raw handshake as a fallback if ib_insync is unavailable

Why

Cloud Run can reach the IB Gateway TCP port while the deeper IB API startup path still times out. The gateway health check now exercises the same client path used by the strategy before declaring the gateway ready.

Validation

  • bash tests/test_wait_for_ib_gateway_ready.sh
  • bash tests/test_docker_compose_ports.sh
  • bash tests/test_gateway_recovery_scripts.sh
  • bash tests/test_install_2fa_bot_watcher.sh
  • bash tests/test_workflow_shared_config.sh

@Pigbibi
Pigbibi marked this pull request as ready for review April 20, 2026 21:22
@Pigbibi
Pigbibi merged commit df57781 into main Apr 20, 2026
1 check passed
@Pigbibi
Pigbibi deleted the harden-ibkr-gateway-readiness-check branch April 20, 2026 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant