quantumlib / Cirq

A Python framework for creating, editing, and invoking Noisy Intermediate Scale Quantum (NISQ) circuits.
Apache License 2.0
4.24k stars 1.01k forks source link

Add UNKNOWN status code to retryable Quantum Engine errors #6565

Closed wcourtney closed 5 months ago

wcourtney commented 5 months ago

Users have reported intermittent errors where requests are halted due to a timeout. Within a provided stacktrace, I found:

<AioRpcError of RPC that terminated with:
    status = StatusCode.UNKNOWN
    details = "408:Request Timeout"
    debug_error_string = "<...>"
>

The stack trace also indicated that the _is_retryable_error check failed and so raised the exception.

This change adds the UNKNOWN error code to retry in these cases.