-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
We are currently using FastAPI as xpublish's web framework / api engine. FastAPI supports async out of the box (details here: https://fastapi.tiangolo.com/async/).
Some initial applications indicate that we're not getting the expected async behavior. I suspect this is somehow related to how we're using dask to fetch chunks of data. Here's what we have now:
GET chunk endpoint:
Which calls the get_key
method:
Within get_data_chunk
, we call compute()
on individual chunks:
Is this the best way to do this? Do we need to modify how dask's scheduler see's these tasks or is configured to use async?
Metadata
Metadata
Assignees
Labels
No labels