While loop never stop running
Can some please help me out with a while loop.
I have a job where I used the wait_for_file function to detect if a file exist and how many, then use a while loop to loop through the number of files to stage each and every single file until done. Here is what my while loop looks like:
My problem is my job never stops, keeps running until I have to kill it manually.
Am I doing something wrong?