...
Code Block |
---|
|
<params>
<param name="scheduler.remote_scheduler" value="HOST_1:PORT_1,HOST_2:PORT_2" />
</params>
|
Configuring the example in your environment
There are just two things that you should configure to make this example run in your environment:
- The Job: In the last line "MY_JOB_CHAIN" is the name of the Job Chain you want to send the orders to (in the main JobScheduler).
Code Block |
---|
|
for ( var i = 0; i < valuePart.length; i++) \{
spooler_log.info( " valuePart : " + valuePart[i]);
var order = spooler.create_order();
var variable_set = spooler.create_variable_set();
variable_set.set_var("scheduler.remote_scheduler", valuePart[i]);
spooler_log.info(variable_set);
order.params = variable_set;
var order_secs = 10 * i;
spooler_log.info( " order_secs : " + order_secs);
order.at = "now+10";
spooler.job_chain( "MY_JOB_CHAIN").add_order( order );
\}
|
Download the example
...