Good afternoon, classmates.
I am relatively new to programming and I developed my first Bot for some tasks, it is already finished but I have a small problem to execute it constantly since it occasionally fails for a foreign reason (sometimes the server does not send the information and the program falls, this happened to me every 5-6hs when it includes the code in a While) but it is essential that when it falls it is "reactivated", so I found the following solutions:
1) Use Contrab and modify it so that it runs every 1 second 2) The following solution: Run script in python every second
My doubt with the second solution, is if the program falls, does this second also fall? If so, it would not be what I was looking for. I appreciate any kind of response that guides me to what is the most indicated for this solution, in a summarized way execute every 1 second or less a script that occasionally fails.
Thanks