-
Notifications
You must be signed in to change notification settings - Fork 7
Jobsub wrapper script
Marc Mengel edited this page Aug 30, 2022
·
3 revisions
Jobsub actually submits to condor a wrapper script which calls the executable you specify on the jobsub_submit command line. This document describes that wrapper script, which is generated from the template templates/simple/simple.sh
Initially the wrapper sets
- umask to 0022
- clears environment variables that sites set that they shouldn't
- CPATH
- LIBRARY_PATH
- Sets BEARER_TOKEN_FILE to the token file condor pushes
- makes a .empty_file file.
- sets temp dir related variables: JSB_TMP,_CONDOR_SCRATCH_DIR,TEMP,TMPDIR based on initial _CONDOR_SCRATCH_DIR
- sets up CONDOR_DIR_INPUT
- sets up ifdhc
- copies in files specified with -f on the jobsub_submit command line
- copies in (if needed) unpacks, and set INPUT_TAR_FILE, INPUT_TAR_FILE_1, etc. for --tar-file-name
- makes JOBSUB_OUT directories for -d parameters
- Does per-experiment custom config
- finds the executable from the jobsub command line, which got copied in with the job
- logs a message about starting the exectable
- runs executable
- logs message about completion
- generates truncated stdout, stderr files to prevent overflowing copy back
- copies out -d files