Triggers on Files
There are two possible triggers that can be set that depend on a file's timestamp:
- Run Trigger: when this trigger is set, and the timestamp of the file changes, the downcone of the file is automatically run.
- Stop Trigger: when this trigger is set, and the timestamp of the file changes, all running jobs in the downcone of the file are automatically stopped.
If both triggers are set, first the jobs are stopped, then the downcone is scheduled. The run is always performed at NORMAL priority.
Set the Triggers
The simplest way to set triggers in FDL is to use the options
-trigger,run
and -trigger,stop
in the I call
that registers the file as
input.# Example of setting a trigger flag in FDL
J vw cp aa bb
I -trigger,run aa
Other Ways to Change the Triggers
Triggers on a file can be set using the vtk
API.
# Example of manipulation of both trigger flags using the VTK API.
set placeId [vtk_place_find "FILE" "aa"]
vtk_place_get $placeId placeInfo
set placeInfo(trigger,run) 1
set placeInfo(trigger,stop) 1
vtk_place_set $placeId placeInfo