Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In some file transfer scenarios the receiver of a file has no knowledge about when the sender creates a file. In case of a (very) large file, it is possible for the receiver to try to read a file before the sender has finished writing it. If the receiver then attempts to use the file at this moment, he will get a corrupted, incomplete file.

Solutions:

Using http://www.sos-berlin.com/doc/en/scheduler.doc/file_orders.xml file_order_source:

  • The sender creates a file named abc.txt~. When transmission is complete, the sender renames the file to abc.txt. You would use a regular expression such as ^.*\.txt$ to check for the presence of files.

...

  • Set up a job chain where the file size is checked in the first node. Then carry out a setback if the file size is changing.

See also: Directory Monitoring with File Orders

Using the JobSchedulerExistsFile job:

...