Ensure that clients are able to get their results even if QPU-ID accessors change

Aperta
#341 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
rust

Direzione di ricerca

Inizia tracciando retrieve_results e il modo in cui viene creato e utilizzato l’handle del job per le ricerche dei risultati. Esamina l’interazione con gli accessor QPU-ID e la issue correlata #336. Il lavoro è completato quando un job conserva informazioni univoche sull’accessor e i client possono recuperare i suoi risultati dopo l’aggiunta di un nuovo accessor.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

performance + reliability

We need a way to ensure that clients are able to get their results from a job, even if the QPU-ID used to submit the job gets a new accessor.

Currently, retrieve_results uses the QPU-ID to look up the address to which it sends the get-results request. But if QPU-IDs are not uniquely correlated with result queues, then this can return an address pointing to a service that doesn't actually know about the specific job in question. In other words, if a new accessor corresponding to a different ConServ instance is added to the network after an executable is submitted but before the client requests the result, and if the client isn't using a cached accessor, then the client will be told that the job doesn't exist.

Planned solution

We will store some kind of unique accessor info in the job-handle itself, and require that for all result lookups.

Other solutions considered
  • Use an accessor-caching TTL that's long enough to outlive most jobs. This reduces the risk but of course doesn't eliminate it (for instance, the client can easily save the job-ID somewhere persistent and then bounce their client; or, a job with a very high number of shots could outlive the TTL).
  • Create some kind of global-result-queue mechanism, where the results for a given QPU-ID are stored in the same queue regardless of the accessor (so, for instance, simulated jobs would go to the same queue).

(relates to #336)

Lingua principale
Rust
Stelle
15
Fork
4
Merge medio
10h 36m
PR unite (30g)
2

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di rigetti/qcs-sdk-rust

Tutte le issue di rigetti/qcs-sdk-rust

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.