To demonstrate how Node Preparation and Node Release tasks work, the steps in this section walk through how to create a job called DemoJob. DemoJob includes a Node Preparation task, a Parametric Sweep task, and a Node Release task.
DemoJob creates a file on the head node called taskDemo.txt that lists the compute nodes that it used and which parametric subtasks ran on each node.
DemoJob runs as follows:
- The Node Preparation task creates a file called
prep.txt on each compute node that is allocated to
DemoJob, and it writes the name of the compute node to the
- Each subtask in the Parametric Sweep task writes its
Task Instance ID to the prep.txt file.
- The Node Release task runs a batch file called
cleanup.bat on each node as it is released from
DemoJob. cleanup.bat contains two commands: the first
command copies data from the compute node to a file on the head
node called taskDemo.txt; the second command deletes the
file on the compute node.