Pankaj Thakur
Pankaj Thakur5w ago

Script runs perfect when ran manually but it fails intermittently when add it to schedule

Script runs perfect when ran manually but it fails intermittently when add it to schedule with below error WaiterError: Waiter CommandExecuted failed: Max attempts exceeded. Previously accepted state: For expression "Status" we matched expected path: "InProgress"
9 Replies
Pankaj Thakur
Pankaj ThakurOP5w ago
I am using boto3 to run some scripts on EC2.
rubenf
rubenf5w ago
WaiterError is not a windmill error so I think it's coming from the frequency at which it is run or it's just a completely random error
Pankaj Thakur
Pankaj ThakurOP5w ago
It throws the error irrespective of the frequency I tries 10 min, 30 min and both are throwing the error if I try to run the script manually, with same time interval, it does not throw any erorr
rubenf
rubenf5w ago
the error is not a windmill one, so no idea ¯\_(ツ)_/¯
Pankaj Thakur
Pankaj ThakurOP5w ago
I think its not about the error, its more about the way scheduler runs and schedule the script. as soon as I put it on scheduler, it starts failing is there a way to see what happening behind the scene when scheduler runs and see why its not able to get the proper status. everytime I schedule any script, first run is successful and issue starts with second run and intermittently fails
rubenf
rubenf5w ago
there is no material difference between a run from a schedule and from the UI
Pankaj Thakur
Pankaj ThakurOP5w ago
Any way you can suggest to troubleshoot to find out why its failing only on schedules?
rubenf
rubenf5w ago
I would root cause what is the underlying cause for the error you see
Pankaj Thakur
Pankaj ThakurOP5w ago
okay, thank you, I'll try to look internally

Did you find this page helpful?