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

HTCondor job run directory #343

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

atishelmanch
Copy link
Contributor

@atishelmanch atishelmanch commented Jan 31, 2024

Hello FCCAnalyses experts - I found that when submitting many jobs to HTCondor due to running over many processes and chunks, this would create a ton of directories, each used to run for a given job.

While I suppose one can create a run directory and simply submit jobs from there (actually, not sure if that would work since the condor script looks for setup.sh in your local_dir), which would populate that separated directory with lots of extra directories, I wanted to make things more organized and not dependent on the local directory you run from, so I propose with these changes to have each job's working directory be located inside the log_dir.

I'm not sure what other users prefer, but I wanted to share this code in case it's desirable/useful for the repo.


Files edited:

  • python/run_analysis.py:
    • Moved definition and creation of log_dir outside of send_to_batch to ensure it can be used by create_condor_config so that in the condor script, job's are directed to the log_dir before creating a working directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant