Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do NOT unset CUTAX_LOCATION when specified local cutax #82

Merged
merged 1 commit into from
Jan 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion utilix/batchq.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,12 @@ def submit_job(jobstring,
if container:
# need to wrap job into another executable
jobstring = singularity_wrap(jobstring, container, bind, partition)
jobstring = 'unset X509_CERT_DIR CUTAX_LOCATION\n' + 'module load singularity\n' + jobstring

# if you have exported INSTALL_CUTAX to be 1, then you do NOT need to unset it
if os.environ.get('INSTALL_CUTAX') != '1':
jobstring = 'unset X509_CERT_DIR\n' + 'module load singularity\n' + jobstring
else:
jobstring = 'unset X509_CERT_DIR CUTAX_LOCATION\n' + 'module load singularity\n' + jobstring

if not hours is None:
hours = '#SBATCH --time={:02d}:{:02d}:{:02d}'.format(int(hours), int(hours * 60 % 60), int(hours * 60 % 60 * 60 % 60))
Expand Down
Loading