Quick Start Guide
Overall Pipeline to Manage Job with HTCondor
Pipeline Example
# hello-DLS.sub # My very first HTCondor submit file # Specify the HTCondor Universe (vanilla is the default). universe = vanilla # Specify your executable (single binary or a script that runs several # commands). # $(Process) will be a integer number for each job, starting with "0" # and increasing for the relevant number of jobs. executable = hello-DLS.sh arguments = $(Process) # Specify that HTCondor should transfer files to and from the # computer where each job runs. should_transfer_files = YES when_to_transfer_output = ON_EXIT # Specify the desired name of the file for HTCondor to store standard # output (or "screen output"), the desired name of the HTCondor log # file, the desired name of the standard error file. # Wherever you see $(Cluster), HTCondor will insert the queue number # assigned to this set of jobs at the time of submission. output = hello-DLS_$(Cluster)_$(Process).out log = hello-DLS_$(Cluster).log error = hello-DLS_$(Cluster)_$(Process).err # Tell HTCondor what amount of compute resources # each job will need on the computer where it runs. request_cpus = 1 request_gpus = 1 request_memory = 1GB request_disk = 1MB # Tell HTCondor to run 3 instances of our job (default is 1): queue 3#!/bin/bash echo "Hello DLS from Job $1 running on `whoami`@`hostname`"condor_submit hello-DLS.subSubmitting job(s)... 3 job(s) submitted to cluster 9.-- Schedd: dls1.cluster.local : <127.0.0.1:9618?... @ 05/18/21 02:15:29 OWNER BATCH_NAME SUBMITTED DONE RUN IDLE TOTAL JOB_IDS user_name ID: 9 5/18 02:14 _ _ 3 3 9.0-2 3 jobs; 0 completed, 0 removed, 3 idle, 0 running, 0 held, 0 suspended-rw-r--r-- 1 user_name user_name 0 Jan 29 02:14 hello-DLS_9_0.err -rw-r--r-- 1 user_name user_name 47 Jan 29 02:47 hello-DLS_9_0.out -rw-r--r-- 1 user_name user_name 0 Jan 29 02:14 hello-DLS_9_1.err -rw-r--r-- 1 user_name user_name 47 Jan 29 02:47 hello-DLS_9_1.out -rw-r--r-- 1 user_name user_name 0 Jan 29 02:14 hello-DLS_9_2.err -rw-r--r-- 1 user_name user_name 47 Jan 29 02:47 hello-DLS_9_2.out -rw-rw-r-- 1 user_name user_name 3425 Jan 29 02:47 hello-DLS_9.log -rw-rw-r-- 1 user_name user_name 115 Jan 29 02:13 hello-DLS.sh -rw-rw-r-- 1 user_name user_name 1416 Jan 29 02:14 hello-DLS.sub
Last updated