- Регистрация
- 10.03.2022
- Сообщения
- 171
- Благодарностей
- 12
- Баллы
- 18
Hey guys, I have a question. I created a bot to perform some repetitive functions, and it works fine with a single thread. However, when I run the bot with multiple threads, I encounter some problems because I need it to read and delete the URL at the beginning of the bot, but the URL doesn't always load. This results in an error throughout the bot because it is left without the URL in the list.
The bot is supposed to run several different URLs in specific quantities, for example, it will run 10 different URLs and 6 times for each one, and then it stops.
In the single thread bot, it only deletes the URL it is using at the end. But in the multi-thread bot, this doesn't work because it needs to delete the URL at the beginning of the bot.
My question is, is there a way to solve this? And can I make the multi-thread bot not delete the URLs at the beginning but only after it finishes the function it needs to perform?
The bot is supposed to run several different URLs in specific quantities, for example, it will run 10 different URLs and 6 times for each one, and then it stops.
In the single thread bot, it only deletes the URL it is using at the end. But in the multi-thread bot, this doesn't work because it needs to delete the URL at the beginning of the bot.
My question is, is there a way to solve this? And can I make the multi-thread bot not delete the URLs at the beginning but only after it finishes the function it needs to perform?