...
THIS PAGE IS 'WORK IN PROGRESS'
Introduction
There are a number of techniques methods available for controlling job execution on remote servers with JobScheduler. The most important of these are:
...
The technique described on this page has been introduced with JobScheduler version 1.7 and allows a job in a job chain to be executed on a remote JobScheduler without neither the need for a job chain or the job itself to be installed in the live folder of the remote JobScheduler nor the need for a process class to be defined.
The remote JobScheduler is simply defined by setting the scheduler.remote_scheduler
order parameter:
The ease with which this method allows remote JobScheduler's to be set . This means that job execution on remote JobSchedulers can more flexibly allocated than with process class based methods. In particular, it allows the decision about which JobScheduler a job is to be executed on to depend on the result of the preceding job.
In addition, only one instance of the job and job chain need to be defined in the live folder of the 'main' JobScheduler, thereby considerably increasing flexibility and reducing maintenance.
Example
An example has been prepared and can be downloaded from:
- remote_scheduler_variable_demo.zip
Note that this example will only work with JobScheduler version 1.7 and newer.
To get the example ready to use, simply unpack the 'remote_scheduler_variable_demo.zip' file into your JobScheduler's 'live
' folder.
If you then open the folder containing the example in JobScheduler's JOE interface you will see that the example consists of a job chain ("Job_Chain_1") with three nodes ("Start", "Job_1" & "End") and two orders:
- Order_1_Local
- Order_2_Homer-4432
When "Order_1_Local" is started - for example, using JobScheduler's JOC interface, "Job_Chain_1" will be executed on the local host - i.e. the JobScheduler in whose file system the demo files were unpacked.
The order "Order_2_Homer-4432" causes the same job chin to be executed by the JobScheduler listening to port 4432 on the Server "homer".
The JobScheduler that is to execute the job chain is specified as an order parameter as can be seen in the screenshot below:
TODO: ADD SCREENSHOT
or, in XML:
Code Block |
---|
<params>
<param name="scheduler.remote_scheduler" value="homer.sos:4432" />
</params>
|
To get "Order_2"
"Order_1_Local"