[execution][database] Handle the case when wait is called and process was not

4 jobs for 30_fix_wait_method in 2 minutes and 58 seconds (queued for 3 seconds)