Skip to content
Snippets Groups Projects
Commit db0657b0 authored by Simone Pigazzini's avatar Simone Pigazzini
Browse files

testing resubmission

parent c853310b
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@
JOBID=${1}
INFILE=${2}
TASK=${3}
RETRY=${4}
export HOME=/afs/cern.ch/user/e/ecalgit/
......@@ -17,11 +18,11 @@ ecalautomation.py $TASK jobctrl --id $JOBID --running
python3 /afs/cern.ch/user/e/ecalgit/online_dev/PhiSymReco_cfg.py inputFiles=$INFILE
RETCMSSW=$?
if [ "$RETCMSSW" == "0" ]
if [ "$RETRY" == "0" ]
then
ecalautomation.py $TASK jobctrl --id $JOBID --done
else
ecalautomation.py $TASK jobctrl --id $JOBID --failed
else
ecalautomation.py $TASK jobctrl --id $JOBID --done
fi
......@@ -27,7 +27,7 @@ if __name__ == '__main__':
'template.sub',
'-spool',
'-queue', 'fname from ('+','.join([f['logical_file_name'] for f in flist])+')',
'-append', f'arguments = "$(ProcId) $(fname) \'{task}\'"'], capture_output=True)
'-append', f'arguments = "$(ProcId) $(fname) \'{task}\' 0"'], capture_output=True)
if ret.returncode == 0:
# awfully parse condor_submit output to get the clusterId
......
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