Skip to content

Allow Stockfish to initialize in cold Railway containers - #7

Merged
Pyrexus merged 1 commit into
mainfrom
fix/real-camera-recognition
Nov 26, 2026
Merged

Pyrexus merged 1 commit into
mainfrom
fix/real-camera-recognition

Conversation

@Pyrexus

@Pyrexus Pyrexus commented Nov 26, 2026

Copy link
Copy Markdown
Owner

On a cold Railway container, Stockfish can take longer than three seconds to initialize its neural network. The previous timeout then left the service using the weaker Python fallback for the rest of that deployment.

Allow 15 seconds for UCI initialization, configure the engine and confirm readiness, then restore the normal three-second timeout for ordinary operations. Startup errors now include their exception type so timeout failures are identifiable in logs.

Validation: all 16 engine tests passed, including a real UCI subprocess delayed past the old three-second threshold. Deployed to Railway and verified active Stockfish, legal camera move overlays, moderate blur, rotation, temporary held boundaries, expiry, recovery, and opponent turns. The camera fixes in PR #6 were already merged before this additional startup fix was pushed.

@Pyrexus
Pyrexus merged commit 57f4484 into main Nov 26, 2026
2 checks passed
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