Skip to content
Snippets Groups Projects
Commit e7b9121d authored by Sylvester Joosten's avatar Sylvester Joosten
Browse files

Fix issue where caching leads to DVMP samples to not be re-generated when the...

Fix issue where caching leads to DVMP samples to not be re-generated when the requested number of events changes.
parent 3a0ef357
No related branches found
No related tags found
1 merge request!23Resolve "HEPMC - Job Failed #34209"
...@@ -51,7 +51,7 @@ source config/env.sh ...@@ -51,7 +51,7 @@ source config/env.sh
source dvmp/env.sh source dvmp/env.sh
## Get a unique file names based on the configuration options ## Get a unique file names based on the configuration options
GEN_FILE=${INPUT_PATH}/gen-${CONFIG}_${DECAY}.hepmc GEN_FILE=${INPUT_PATH}/gen-${CONFIG}_${DECAY}_${JUGGLER_N_EVENTS}.hepmc
SIM_FILE=${TMP_PATH}/sim-${CONFIG}_${DECAY}.root SIM_FILE=${TMP_PATH}/sim-${CONFIG}_${DECAY}.root
SIM_LOG=${TMP_PATH}/sim-${CONFIG}_${DECAY}.log SIM_LOG=${TMP_PATH}/sim-${CONFIG}_${DECAY}.log
......
...@@ -46,7 +46,7 @@ source config/env.sh ...@@ -46,7 +46,7 @@ source config/env.sh
source dvmp/env.sh source dvmp/env.sh
## Get a unique file name prefix based on the configuration options ## Get a unique file name prefix based on the configuration options
GEN_TAG=gen-${CONFIG}_${DECAY} ## Generic file prefix GEN_TAG=gen-${CONFIG}_${DECAY}_${JUGGLER_N_EVENTS} ## Generic file prefix
## ============================================================================= ## =============================================================================
## Step 2: Check if we really need to run, or can use the cache. ## Step 2: Check if we really need to run, or can use the cache.
......
...@@ -117,7 +117,7 @@ if __name__ == '__main__': ...@@ -117,7 +117,7 @@ if __name__ == '__main__':
## check if we all exited nicely, else exit with status 1 ## check if we all exited nicely, else exit with status 1
if not all(ret == 0 for ret in return_values): if not all(ret == 0 for ret in return_values):
n_fail = sum([1 for ret in return_values if ret != 0]) n_fail = sum([1 for ret in return_values if ret != 0])
print('ERROR, {} of {} jobs failed'.format(n_fail)) print('ERROR, {} of {} jobs failed'.format(n_fail, len(cmds)))
print('Return values:', [ret for ret in return_values if ret != 0]) print('Return values:', [ret for ret in return_values if ret != 0])
exit(1) exit(1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment