HCL Workload Automation, Version 9.4

Defining affinity relationships

Affinity relationships cause jobs to run on the same resource. The resource on which the first job runs is chosen dynamically by HCL Workload Automation, and the affine job or jobs run on the same resource.

In HCL Workload Automation, you can define affinity relationships between two or more jobs when you want them to run on the same resource. When submitting the job from the HCL Workload Automation environment, you can define affinity that will be resolved by HCL Workload Automation by adding an affinity definition to the Task String section of the HCL Workload Automation job in one of the following ways:
  • Identifying affine job with the HCL Workload Automation job ID
  • Identifying affine job with the HCL Workload Automation job alias
  • Identifying affine job with the HCL Workload Automation job name
Identifying affine job with the HCL Workload Automation job ID
jobName [-var varName=varValue,…,]-affinity jobid=jobid
Identifying affine job with the HCL Workload Automation job alias
jobName [-var varName=varValue,…,]-affinity alias=alias
where
jobid
Is the ID HCL Workload Automation assigns when the job is submitted.
alias
Is one of the following:
  • The alias defined by the user at submission time for HCL Workload Automation jobs.
  • The alias automatically generated by the workload broker workstation when the job is submitted from HCL Workload Automation.
Identifying affine job with the HCL Workload Automation job name
The jobs must belong to the same job stream
jobName [-var varName=varValue,…,]-twsaffinity jobname=twsJobName
where
twsJobName
Is the name of the instance of the HCL Workload Automation job with which you want to establish an affinity relationship.