Skip to content

Conversation

the-iron-ryan
Copy link

@the-iron-ryan the-iron-ryan commented Jun 18, 2025

Large circuits submitted through the Q-CTRL integration can take a while (upwards of 50-60 seconds). This appears to cause the translation service - which connects to our Rigetti pre-processing endpoint - to fail with the following 'unavailable` message:

Call failed during gRPC request: status: Unavailable, message: "unavailable", details: [], metadata: MetadataMap { headers: {"server": "awselb/2.0", "date": "Thu, 03 Jul 2025 01:08:53 GMT", "content-type": "application/grpc", "content-length": "0"} }

This PR proposes a quick solution to increase the Endpoint timeout for translate to 2 minutes, as well as enable keep_alive_while_idle and increase the keep_alive_interval.

@the-iron-ryan the-iron-ryan changed the title fix: Increase default_backoff timeouts to handle large circuits fix: Increase timeout and keep_alive_interval to handle large circuits Jul 3, 2025
Comment on lines +357 to +359
.keep_alive_while_idle(true)
.http2_keep_alive_interval(Duration::from_secs(120))
.timeout(Duration::from_secs(300))
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added this to hopefully keep the endpoint connection live when idling. Als upped the keep_alive_interval to 2 minutes.

@BatmanAoD
Copy link
Contributor

Have you tested that this actually changes the behavior?

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.

2 participants