Heroku 2 dynos running scheduled task twice

Hi I have a wappler app deployed on heroku using server actions that’s supposed to run once a day but I notice this morning that it runs twice . Is it because I have 2 dynos on my heroku app ? what could be the possible solution aside from purchasing the dedicated server of heroku?

What kind of scheduled task are you using?

Do note that on the free plans the Heroku dynos go to sleep, and takes a bit to awake as well scheduled things don’t work while asleep.

just inserting data into DB . I have paid dyno but would like to add more but if I do so my scheduled task runs twice

Put a condition in the server connect workflow based on IP address.