Working with the Terminate Job Node

Overview of the Terminate Job Node

You can add a Terminate Job node to a Flow tab in an orchestration job to terminate a job. You can terminate the job in two possible ways. First, you can instruct it to stop running after all currently executing nodes are finished (the NICE mode). Second, you can instruct it to send a cancel to all running nodes (the KILL mode).
Note that the Terminate Job node ends processing within the SAS Visual Process Orchestration context, but results vary for jobs running on external servers.

Inputs and Outputs to the Terminate Job Node

The Terminate Job node can take the inputs and outputs listed in the following table:
Inputs and Outputs to the Terminate Job Node
Name
Description
Inputs:
TYPE
The type of termination. Valid values are NICE and KILL.
Outputs:
No unique outputs

Using the Terminate Job Node

You can create an orchestration job that uses a Terminate Job node in the Flow tab to end the processing of an orchestration job. For example, you could create an orchestration job that uses a Data Management Job node to run a SAS Data Management Studio job. Then, you could add a Terminate Job node to ensure that the orchestration job terminates after the deployed job successfully completes. (For information about Data Management Job nodes, see Working with the Data Management Job Node.)
This sample orchestration job is shown in the following display:
Batch Job
Batch Job
The following display shows the Terminate Job node settings:
Terminate Job Settings
Terminate Job Settings
The following display shows run status details for the completed job:
Run Status
Run Status