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
I am using boto3 to run some scripts on EC2.
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
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
the error is not a windmill one, so no idea ¯\_(ツ)_/¯
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
there is no material difference between a run from a schedule and from the UI
Any way you can suggest to troubleshoot to find out why its failing only on schedules?
I would root cause what is the underlying cause for the error you see
okay, thank you, I'll try to look internally