Answer the question
In order to leave comments, you need to log in
How to run tasks asynchronously as they arrive?
Tasks arrive at an indefinite interval,
there are functions to solve them,
they all need to run asynchronously and do not interfere with the main loop
Answer the question
In order to leave comments, you need to log in
It seems to me that multithreading will suit you more.
Just run the desired function like this:
from threading import Thread
Thread(target=ваша_функция, args=аргументы_если_они_есть).start()
asyncio. It is very simple, unlike trading and similar ones, and it will do everything on its own, unlike celery. In order to understand it in 10 minutes, I advise you to create an aiohttp server
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question