I have a list something like this:
l = [(1000, 'DONE'), (5, 'FAILED'), (1995, 'TO_DO')]
The (1995, 'TO_DO') moves to either 'DONE' or 'FAILED' one by one, This process takes some time (say about 5 minutes). I want to keep on checking for 'TO_DO' in list l and when it's done the script should be done.
So As soon as TO_DO gets disappear, the script should say - 'Process Complete' and need to wait until any occurrence of 'TO_DO' is there in the list.
Numbers can vary.