4 ms·
Have you looked into celery at all? You could setup a pretty simple task queue with celery and have multiple workers. Setup a main process with the bot who can
by adamhp 5y ago
Have you looked into celery at all? You could setup a pretty simple task queue with celery and have multiple workers. Setup a main process with the bot who can put jobs on the queue, and then have a few worker processes that take jobs from the queue and do the work. Celery is pretty standard when doing background, long-running, scheduled, and async tasks.
- prashantsengar 5y agoI had not looked into it till now but checking it out now. Do you have any recommendations to where I should learn more about using it? (I am checking the docs to get a basic understanding rn)
- adamhp 5y agoThere should be plenty of documentation and info online if you just search "task queue celery python" or some similar string. It's pretty much the de facto standard in the Python community.
- prashantsengar 5y agoThanks a lot!