17 ms·
I am most familiar with Python and I am using it for the complete work. The Telegram bot is written using a async-based library (telethon). I should have also
by prashantsengar 5y ago
I am most familiar with Python and I am using it for the complete work.
The Telegram bot is written using a async-based library (telethon).
I should have also explained this in the post that when the user asks the bot to run the script, I do a `thread.start()`
- adamhp 5y agoHave 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!