After submitting DemoJob, check the state of your tasks and verify the output of DemoJob.
To check the state of your tasks:
In HPC Job Manager, you can monitor the state of your job and tasks and view error messages in the Job View dialog box. To open the dialog box: In the job list, double-click DemoJob.
Use the following cmdlet or command to check the state of the tasks, where <ID> is the job ID associated with DemoJob:
- For HPC PowerShell:
get-hpcJob –id <ID>|get-hpctask|select ID, Type, State, ErrorMessage
- For a Command Prompt window:
Job listtasks <ID>
If any of the tasks failed, use the error messages to help troubleshoot the issue.
To verify the output of DemoJob:
If all the tasks are finished, open the taskDemo.txt file and verify that the file lists the compute nodes that the job used and which Parametric Sweep subtasks ran on each node. The contents of the file should be similar to this:
Task instance ID 1
Task instance ID 3
Task instance ID 2
Task instance ID 4