You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

You can define special parameters in the order configuration to assign them to a specific node. The syntax for those order parameters ist <node>/<name>

Example

When you have a job chain with a node 100 then you can specify a parameter with the name 100/order_param. The job in the node 100 then have access to the parameter order_param. In the other nodes, this parameter is not available.

Also substitution will be done for the order node parameter.

When you also have a node parameter this will be overwritten by the order node parameter

You also can use order node parameters if you have not defined node parameters and so have no job chain configuration file.

To activate the order node function please add the configuration monitor to the pre processing of the job in the node.

  <job  stop_on_error="no" order="yes" name="job2">
     ....
    <monitor  name="configuration_monitor" ordering="0">
        <script  language="java" java_class_path="" java_class="'''sos.scheduler.managed.configuration.ConfigurationOrderMonitor'''"/>
    </monitor>
  /job>

This job will be used in both nodes of the sample job chain. Please look at the pre processing.

Here is the job chain with two nodes

The order defines the parameters for the node.

You can download a sample from here.

  • No labels