Skip to content

Fast api is blocking long running requests when using asyncio calls #3091

@mindej

Description

@mindej

Do you have an example of how to process long-lasting processes and not block main thread.

We have some AI workload and processing take from 30s to 5 mins depending on the input. Results should be returned to the front end for the user to analyze.

Can you advise or prove an example how to handle the call and not block main thread/uvloop?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions