...
- Operation
- Modify the parameter
monitor_file_change_location
oforder1
to point to a file in your environment. - Start
order1
from the JOC user interface.- Immediately modify and save the monitored file. Changes of the file size are checked every 10s for a max. duration of 30s.
- After 30 seconds
order1
will either be successfully moved tojob2
or it will fail depending on the monitored file being considered steady within the given timeout.
- Modify the parameter
Implementation
Configuration
- The File Size Monitor can be configured from job or order parameters.
The following parameters are used:
Parameter Required Default Description monitor_file_change_location
yes The full path of a file that should be monitored. monitor_file_change_timeout
yes The max. duration in seconds that repeated checks for steady file size are performed. monitor_file_change_interval
no 1 Specifies the number of seconds that the monitor sleeps between repeated checks of the file size. monitor_file_change_exit_code
no 1 Optionally sets the exit code of the current job to the specified value if the monitored files is not being found steady. This works for shell jobs exclusively. monitor_file_change_error_state
no Optionally sets the order to the specified state if the monitored file is not being found steady
Implementation
Order Implementation
- An order can be used to carry the parameters for the File Size Monitor.
The order can be implemented like this:
Code Block language xml title Order Implementation Sample linenumbers true collapse true <order> <params > <param name="monitor_file_change_location" value="/tmp/jobscheduler/file/some_changing_file.txt"/> <param name="monitor_file_change_timeout" value="30"/> <param name="monitor_file_change_error_state" value="error"/> </params> <run_time /> </order>
...