set_abort_time

Specifies delay time if batch aborts.

Member of namespace

mvscan

Syntax

bool set_abort_time (int nSecs)

Parameters

nSecs
Type: integer
Time to wait before continuing when a serious error occurs.

Parameters

nSecs : Time to wait before continuing when a serious error occurs.

Returns

Always True.

Level

Batch level.

Details

The scan action waits the specified time before returning if a fatal error is detected that would cause the batch to abort. This action can be useful to prevent a large number of aborted batches due to an abort condition. For example, if the source folder should become unavailable for some time, the abort timeout will limit the number of aborted batches until the folder becomes available again. If such an even could occur, this wait time can be adjusted to slow down ingestion processing until the source directory is available again.

If this action is not called, the default abort time value of 5 seconds is used.

Rulerunner has settings that control how it responds to an abort situation. Review the Rulerunner settings to ensure they are set as desired based on how it should respond should a batch abort.

Example:
set_abort_time("60")
scan()