Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Operation
    • Modify the parameter monitor_file_change_location of order1 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 to job2 or it will fail depending on the monitored file being considered steady within the given timeout.

Implementation

Configuration

  • The File Size Monitor can be configured from job or order parameters.
  • The following parameters are used:

    ParameterRequiredDefaultDescription
    monitor_file_change_locationyes The full path of a file that should be monitored.
    monitor_file_change_timeoutyes The max. duration in seconds that repeated checks for steady file size are performed.
    monitor_file_change_intervalno1Specifies the number of seconds that the monitor sleeps between repeated checks of the file size.
    monitor_file_change_exit_codeno1Optionally 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_stateno 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
    languagexml
    titleOrder Implementation Sample
    linenumberstrue
    collapsetrue
    <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>

...