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

Add environment variables for submit, log, out, and error directories #46

Closed
jrbourbeau opened this issue Oct 21, 2017 · 0 comments · Fixed by #50
Closed

Add environment variables for submit, log, out, and error directories #46

jrbourbeau opened this issue Oct 21, 2017 · 0 comments · Fixed by #50

Comments

@jrbourbeau
Copy link
Member

Description

It would be nice if pycondor supported setting environment variables for Job and Dagman submit, log, out, and error directories. So something like

>>> import pycondor
>>> job = pycondor.Job('myjob', '/path/to/executable.py`)
>>> job.build()

would automatically check for environment variables like

PYCONDOR_SUBMIT_DIR=/path/to/submit
PYCONDOR_LOG_DIR=/path/to/log
PYCONDOR_OUT_DIR=/path/to/out
PYCONDOR_ERROR_DIR=/path/to/error

and set the directories in the built submit file appropriately. E.g.

# submit file at /path/to/submit/myjob.submit
output = /path/to/out/myjob.out   
error = /path/to/error/myjob.error  
log = /path/to/log/myjob.log                                           
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant