We are looking to set up an inbound fileset thread for files delivered by an external ftp process to our Cloverleaf engine. These files are to be converted to XML and parked in an outbound directory by another thread in the same process. Just these two threads in the process.
To avoid the problem of grabbing these files before the ftp process finishes writing them to the inbound directory, we were toying with an idea to write a tps directory parse tcl proc with a loop that checks file sizes, sleeps a few seconds, checks again until they are equal: first check, sleep n seconds, second check – equal? pass the file list back to engine.
Normally we do not put sleep into our tcl for running engines (processes). Our old knowledge as to “why” is a bit lost. So… we are of two minds: a sleep in a single process only affects that process in a site but not any other processes. They continue to get cpu cycles – we figure. But some little daemon bugs me that the entire site may be affected too.
Bottom line: does a tcl sleep in one process in a site affect the other processes in this same site? that is, do they continue to run or halt?
Thanks for your response in our quest to “reload” ancient knowledge!!