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

Jobs re-submission tool created #28

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

Conversation

amlyon
Copy link

@amlyon amlyon commented May 23, 2020

@rmanzoni

PR importing the job re-submission scripts
-> heppy files discriminating between good and bad jobs added in python/heppy_patch
-> bash re-submission files added in scripts/
-> readme modified with recipe to run the job re-submission

```
cp python/heppy_patch/* $CMSSW_BASE/bin/<architecture>/
```

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

heppy_patch is not a very informative name.

Also, copying stuff by hand is very dirty, if you put your scripts in a script directory, SCRAM will automatically copy them appropriately.
https://twiki.cern.ch/twiki/bin/view/CMSPublic/SWGuideBuildFile#CmsswScripts

```
cp scripts/resbmitter_data.sh cfg/<year>/<dataRep>/
cp scripts/resbmitter_mc.sh cfg/<year>/<mcRep>/
```
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same goes here, no need to copy and shuffle scripts around if they are located in a directory included in $PATH

Finally run the scripts
```
cd cfg/<year>/<data|mcRep>/
source resubmitter_<data|mc>.sh
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

run the script with source?!

@@ -0,0 +1,50 @@
#!/usr/bin/env python
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

another script with the same name exists, I fear that having two is messy, especially if we want to avoid patching and moving scripts by hand every time

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.

2 participants