File Events on UNIX
File events allow you to raise events in Redwood Server as soon as a file arrives. If you check Check if file is in use for a file event, RunMyJobs takes file locking into account and raises a file event only when the process that created the file has released its lock on the file. This allows large files to be picked up as soon as they are complete.
To find out if a file is locked, use fuser
. The output should be null. If you see something like the following, the file is locked. In this example, the file is locked by a process with a process ID of 123456
:
fuser file.txt
file.txt: 123456
Tip: The time RunMyJobs needs to raise an event once a lock has been released on a watched file should not exceed the Poll Interval plus 5 seconds. Heavy load on the Platform Agent can, however, increase this time somewhat. If you experience long delays with small files, you can uncheck Check if file is in use and see if this solves the problem. Note, however, that Redwood Server cannot determine if the file is complete in this case.