Skip to end of metadata
Go to start of metadata


Process Classes for use with JobScheduler Agents

Process Class configuration

Now we assume that we use multiple JobScheduler Agents and we want the job to be executed on different JobScheduler Agents depending on parameters.

  • Create a process class (e.g. with the name _agents_) in JOE with empty values for host and port. The values for host and port are set dynamically. This should result in the following configuration file ./config/live/agents.process_class.xml:

  • Assign the process class to the job in JOE. In this example the job has the name shellOnDynamicAgent and calls hostname as a shell command.

    So you should see the following content in the configuration file ./config/live/shellOnDynamicAgent.job.xml:

Job configuration

  • Create the following job, e.g. setAgent, and add it to the job chain as the forerunner of the JobScheduler Agent job.

    This job modifies the process_class setting of the successor job in the job chain according to the order parameters agent_host_ and _agent_port:

Job chain configuration

  • Add these jobs to a job chain, e.g. jobChainWithAgentJob:

    This will result in the job chain configuration file ./config/live/jobChainWithAgentJob.job_chain.xml:

Order configuration

  • Add an order to the job chain jobChainWithAgentJob for each JobScheduler Agent.

    For example, one JobScheduler Agent runs on HostA with port 4444 and another JobScheduler Agent runs on HostB with port 4444. The order has to be assigned the parameters agent_host_ and _agent_port.

    This should result in the order configuration files ./config/live/jobChainWithAgentJob,hostA-4444.order.xml and ./config/live/jobChainWithAgentJob,hostB-4444.order.xml: