set_wait_time
For batch creation purposes, specifies the maximum interval that the scan action waits for the arrival of more input files to add to a batch.
Important: This action can also affect the behavior of set_min_age. For more
information, see set_min_age.
Member of namespace
mvscanSyntax
bool set_wait_time (int nSecs)
Parameters
- nSecs
The maximum number of seconds to wait for files to complete a batch.
If you do not call this action, the default wait interval is 2 seconds.
Returns
Always True.Level
Batch level.Details
The maximum time to wait for input files to arrive, if at least one file was ingested, no more files are available, and the batch has not reached capacity. Ingestion of files into the batch stops when the wait limit is reached or when the maximum number of files per batch has been reached. If no files are available during the scan() action, and this time is reached, the scan action returns and the batch status remains pending.- Example:
set_wait_time("60") scan()