Skip to content

Commit

Permalink
Merge pull request #2627 from qliphy/master
Browse files Browse the repository at this point in the history
Port #2626 from Kenyi
  • Loading branch information
qliphy authored May 6, 2020
2 parents 48ea574 + ca6b29b commit dc48be7
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions bin/MadGraph5_aMCatNLO/submit_cmsconnect_gridpack_generation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ cat<<-EOF
Log = condor_log/job.log.\$(Cluster)
transfer_input_files = $input_files, gridpack_generation.sh, /usr/bin/unzip
transfer_output_files = ${card_name}.log
transfer_output_files = ${card_name}.log, ${sandbox_output}
transfer_output_remaps = "${card_name}.log = ${card_name}_codegen.log"
+WantIOProxy=true
+IsGridpack=true
Expand Down Expand Up @@ -77,21 +77,23 @@ cat<<-EOF
echo "The xrdcp command below failed:"
echo "xrdcp -f \${condor_scratch}$sandbox_output root://stash.osgconnect.net:1094/${stash_tmpdir##/stash}/$sandbox_output"
fi
# Second, try condor_chirp
echo ">> Copying sandbox via condor_chirp"
CONDOR_CHIRP_BIN=\$(command -v condor_chirp)
if [ \$? != 0 ]; then
if [ -n "\${CONDOR_CONFIG}" ]; then
CONDOR_CHIRP_BIN="\$(dirname \$CONDOR_CONFIG)/main/condor/libexec/condor_chirp"
fi
fi
"\${CONDOR_CHIRP_BIN}" put -perm 644 "\${condor_scratch}/$sandbox_output" "$sandbox_output"
exitcode=\$?
if [ \$exitcode -ne 0 ]; then
echo "condor_chirp failed. Exiting with error code 210."
exit 210
fi
rm "\${condor_scratch}/$sandbox_output"
# Temporarily disable condor_chirp
# until this feature comes back in CMS
## Second, try condor_chirp
#echo ">> Copying sandbox via condor_chirp"
#CONDOR_CHIRP_BIN=\$(command -v condor_chirp)
#if [ \$? != 0 ]; then
# if [ -n "\${CONDOR_CONFIG}" ]; then
# CONDOR_CHIRP_BIN="\$(dirname \$CONDOR_CONFIG)/main/condor/libexec/condor_chirp"
# fi
#fi
#"\${CONDOR_CHIRP_BIN}" put -perm 644 "\${condor_scratch}/$sandbox_output" "$sandbox_output"
#exitcode=\$?
#if [ \$exitcode -ne 0 ]; then
# echo "condor_chirp failed. Exiting with error code 210."
# exit 210
#fi
#rm "\${condor_scratch}/$sandbox_output"
EOF
}
Expand Down

0 comments on commit dc48be7

Please sign in to comment.