How a distributed shadow job is bound with a remote job instance
On an HCL Workload Automation distributed remote engine, the bind is established in the preproduction plan. Distributed remote job instances belonging to the JOBS job stream and submitted at run time are not written into the preproduction plan and so they are not involved in the bind process.
If the preproduction plan does not exist on the remote engine when the bind request is received, the distributed shadow job status remains WAIT until the preproduction plan generation is completed and the bind request is processed. This might happen, for example, when the preproduction plan is created again from scratch on the remote engine.
The preproduction plan does not contain the instances of the jobs belonging to the job streams. The job instances are added later on to the production plan when the plan is extended or created.
This means that the bind is established with the job stream instance included in the preproduction plan and that is scheduled to run on the specified workstation. The definition of that job stream must contain the definition of the remote job to bind.
- Input arrival (IA): 18:00
- Remote job information:
- Job stream name: JS2
- Job name: JOB2
- Job stream workstation: WKST2
- The white box indicates the time interval covered by the preproduction plan.
- The light grey box indicates the time interval covered by the production plan.
- The dark grey box indicates the interval in the remote engine plan during which the job instance to bind must be searched.
- The JS2 instances shown are scheduled to run on workstation WKST2.
- The JS2 occurrence highlighted in bold is the instance selected for the bind.
- Scenario 1: The production plan contains the instance of job stream JS2 that closest precedes the shadow job input arrival.
- Both, in the case where the shadow job input arrival is included
in the production plan interval, as shown in Instance to be bound if the shadow job input arrival
is included in the production plan interval: and in the case where the bind interval extends outside the
production plan interval, as shown in Instance to be bound
if the bind interval extends outside the production plan interval: the JS2 instance that closest precedes the shadow job input
arrival is selected for the bind. This means that the shadow job and
the remote job stream instance are now associated. If, at a later
time, a new instance of JS2 that more closely precedes the shadow
job input arrival is submitted ad hoc in the remote engine plan, the
match with the JS2 instance selected for the bind is not modified. One of the following situations can now occur:
- The selected JS2 instance contains JOB2
- The bind is established and a notification containing:
- The remote job information identifying the JOB2 instance in the remote engine plan
- The current status of that JOB2 instance in the remote engine plan
- The selected JS2 instance no longer contains JOB2 because it was either canceled or completed, and was removed from the production plan.
- The bind is established and a notification informing about the successful execution status is sent back to the HCL Workload Automation for Z controller. The shadow job instance is marked as completed. Its successors can start.
- The selected JS2 instance contains JOB2, but JOB2 is in canceled status
- The bind is established and a notification informing about the successful execution status is sent back to the HCL Workload Automation for Z controller. The shadow job instance is marked as completed. Its successors can start.
- Scenario 2: The production plan interval contains the input arrival of the shadow job, but no instances of job stream JS2 exist.
- The input
arrival of the shadow job is included in the production plan but no
instance to bind exists shows the case where
a JS2 instance that closest precedes the shadow job input arrival
does not exist.
In this case, the bind with JOB2 fails. A notification informing that the bind failed is sent back to the HCL Workload Automation for Z controller, and the shadow job status is updated according to what you set in the Complete if bind fails field.
- Scenario 3: The preproduction plan interval contains the input arrival of the shadow job and the production plan does not yet include the closest preceding JS2 instance.
- The instance
to be bound exists but it is not yet included in the production plan shows the JS2 instance
that can be associated to the shadow job, even though the job JOB2
is not yet in the production plan.
A notification informing that the bind is established is sent back to the HCL Workload Automation for Z controller and the status of the shadow job is set to "READY-The bind was established".
- Scenario 4: The preproduction plan interval still does not contain the input arrival of the shadow job.
- The preproduction
plan interval still does not contain the input arrival of the shadow
job shows that no JS2
instance can be associated with the shadow job, because, until the
preproduction plan includes the shadow job input arrival, closer preceding
JS2 instances can still be added.
In this case, the bind request is put on hold until the preproduction plan is extended to include the shadow job input arrival. Until then the status of the shadow job remains "READY-Waiting for bind result".