set_move_wait_time

Specifies the time to wait for a source file to be deleted after it is moved from to the batch folder.

Syntax

bool set_move_wait_time (int nSecs)

Parameters

nSecs
Type: integer
Number of seconds to wait for the source file to be deleted before the action fails.

Returns

Always True.

Level

Batch level

Details

Over a slow network, and especially with large input files, moving files from the source folder to batch folder can take a significant length of time. The scan action checks that the source file was deleted after it was moved. If the source folder still exists, the scan action waits for a length of time periodically checking to see if the file was deleted.

If the folder still exists at the end of this time period, the copy in the batch folder is renamed with the extension .failed and it is not included in the batch. It is assumed that the original source file will be ingested by a subsequent scan task.

Example:
set_move_wait_time("120")
scan()