[Bug]: Async calls

Aperta
#281 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
52/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
fastapi, python

Direzione di ricerca

Start at the synchronous call in backend/src/main.py around line 1077, then trace the search calls and the KitsuProvider client to find other blocking work in async functions. Decide on an async approach or a way to keep blocking calls from slowing the backend; done means these calls no longer block async requests.

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

Descrizione

bug
Describe the bug

FastAPI is designed to use only async calls, but many calls are sequential (for the search, for instance). To stay cohesive, I didn't use an async client for the KitsuProvider, but it will make your backend slower.

Steps to reproduce

There is a sync call in an async function: https://github.com/AcademySoftwareFoundation/dna/blob/69554a6cd19fab5f1bdeb61430e805a590792b3a/backend/src/main.py#L1077

Expected behavior

Have only async functions or a scheme to avoid their blocking aspect.

Actual behavior

Some function calls are blocking.

Version or commit

69554a6cd19fab5f1bdeb61430e805a590792b3a

Lingua principale
TypeScript
Stelle
57
Fork
49
Merge medio
1g 11h
PR unite (30g)
39

Preparare l'ambiente

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 AcademySoftwareFoundation/dna

Tutte le issue di AcademySoftwareFoundation/dna

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.