All Questions
4 questions
0
votes
0
answers
312
views
How to use Gevent/ asyncio if I already use ThreadPoolExecutor() in my code
I've developed a Flask app where I use ThreadPoolExecutor(max_workers=4) in my code.
I use this pool of threads when I send API requests to 3rd parties, in order to work in an asynchronous fashion.
I ...
0
votes
1
answer
2k
views
Running a Flask/Quart app with a Discord.py bot
I am trying to make a Discord bot that listens for a webhook and sends messages in a discord channel when it receives a ping from the webhook. It seems that due to the way threads work in python, I ...
-1
votes
2
answers
5k
views
Python Flask - Asyncio asynchronous Question
I have a web endpoint for users to upload file.
When the endpoint receives the request, I want to run a background job to process the file.
Since the job would take time to complete, I wish to return ...
0
votes
1
answer
2k
views
Async Method Not Executed in Background in Flask Application
I have a GraphQL API built with Flask and Graphene packages, running on Python 3.5.4. One of the GraphQL mutation is taking some time to execute (2 to 5 minutes) and I don't want the end user to wait ...