I printed all the variables, all of them are undef. When I set the timeout to 0.01 it loops forever without exiting that block.
On non-cluster machines also all the variables are undef. Even when I set the timeout to .01 it exits after checking out the code. This problems seems to be there only when I submit this job to cluster.