Jobs¶
Overview¶
The Jobs menu on the menu bar includes both the Job Composer and the Active Jobs tools. The Job Composer assists you to set up and submit jobs to the cluster through a graphical interface using file management tools and access to job templates.
Job Composer¶
Creating a New Job¶
- Click New Job > From Default Template
-
A new job (e.g., Simple Sequential Job) will appear in your job list.
-
Click Open Editor to open the directory in the File Editor.
- Modify the main_job.sh script as needed.
- Return to the Job Composer and click Job Options to adjust:
- Job Name
- Cluster (ensure it’s set to wulver)
- Account (It will take the default account. If you have or ever had multiple accounts then you have to specify your account)
- Click Save to apply changes.
- Select an existing job from your list.
- Click New Job > From Selected Job.
- This duplicates the job, allowing you to modify it without altering the original.
- Click New Job > From Specified Path.
- Enter the full path to a directory containing your job script and necessary files.
- This is useful for jobs prepared outside the Job Composer.
Editing the Job Script¶
- In the Job Composer, locate your job and click Open Editor under the Submit Script section.
- Modify the main_job.sh script with your desired commands and SLURM directives. For example:
#SBATCH --output=%x.%j.out # %x.%j expands to slurm JobName.JobID #SBATCH --error=%x.%j.err #SBATCH --partition=general #SBATCH --qos=standard #SBATCH --nodes=1 #SBATCH --ntasks-per-node=1 #SBATCH --time=01:00 # D-HH:MM:SS #SBATCH --mem-per-cpu=4000M
- Ensure you adjust the SLURM directives (#SBATCH lines) according to your job’s requirements.
- Click Save after editing.
Submitting the Job¶
- In the Job Composer, select your job.
- Click Submit.
- Monitor the job’s status under the Active Jobs tab.
- Queued: Waiting for resources.
- Running: Currently executing.
- Completed: Finished execution.
Outputs¶
- You can check the output/error in folder contents
- Check both files to confirm your program ran successfully.
Note
Even if an error might have occurred, your job status will still show complete.
Active Jobs¶
The Active Jobs tool will allow you to view all the jobs you’ve submitted that are currently in the queue, via OnDemand or not, so you can check on their status.
You can expand each job to check more details. You can also open the current working directory of job in file manager or terminal by clicking Open in File Manger
or Open in Terminal
respectively.