plotly / plotly/dash

Differences in dcc.Store storage_type performance with dash 2.17.1

Aperta
#2,907 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

feature P3
Lingua principale
Python
Stelle
24.4k
Fork
2.3k
Merge medio
2g 7h
PR unite (30g)
13

Descrizione

Background callback running correctly (loading animations appearing, print statements appearing too, etc) buut when it finishes it errors out (no output is returned) with this error in the console:

Failed to execute 'setItem' on 'Storage': Setting the value of 'flag_storage' exceeded the quota.

It was resolved by changing the storage_type to 'memory' as per: https://community.plotly.com/t/error-the-quota-has-been-exceeded/26944

Description by the user:

When tested with storage_type = 'memory' instead of 'session', we don’t get the issue, so I tried to understand more why the issue happened only in the past weeks while the storage as session was used for one year on server (Dash Enterprise) and still works in our local machine.
The only difference is that on the server we recently switched from the 2.16.1 version (that we still use on local machine) to the 2.17.1; if we specify dash==2.16.1 even with storage_type='session' we get no issue, but with 2.17.1 we have it.

I don't have additional information and haven't had the opportunity to try to replicate this.

Guida per i contributori

Apri la 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.

Direzione di ricerca

Inizia riproducendo il problema con Dash 2.16.1 e 2.17.1, confrontando dcc.Store con storage_type impostato su 'session' e 'memory'. Il problema è concluso quando il comportamento di storage dipendente dalla versione e l'errore di quota 'flag_storage' sono compresi e viene fornita una correzione verificata o una limitazione documentata.

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

Valutazione

Stack tecnologico
python
Ambito
frontend
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.