Forums

Scheduled tasks messages dubbed in bot

Hello, running the bot from the console all works fine, but if I run it from Scheduled tasks messages dubbed 2-5 times in telegram bot.

Please advise me in what can be the problem, the code runs only once from the Scheduled tasks (no consoles)

Is it possible that you have multiple copies of your scheduled task running at the same time? For example, if you've scheduled the same script to run every hour at 6 minutes past the hour, and it takes more than one hour to run, you would have two or more copies running at the same time. You can see a list of all currently running task processes by using the "Running processes" table at the bottom of the "Tasks" page.