163 |
|
self.total_number_of_events = int(cfg_params['CMSSW.total_number_of_events']) |
164 |
|
self.selectTotalNumberEvents = 1 |
165 |
|
if self.selectNumberOfJobs == 1: |
166 |
< |
if int(self.total_number_of_events) < int(self.theNumberOfJobs): |
166 |
> |
if int(self.total_number_of_events) < int(self.theNumberOfJobs): |
167 |
|
msg = 'Must specify at least one event per job. total_number_of_events > number_of_jobs ' |
168 |
|
raise CrabException(msg) |
169 |
|
else: |
1196 |
|
txt += ' if [ -s $RUNTIME_AREA/parseCrabFjr.py ]; then\n' |
1197 |
|
txt += ' cmd_out=`python $RUNTIME_AREA/parseCrabFjr.py --input $RUNTIME_AREA/crab_fjr_$NJob.xml --MonitorID $MonitorID --MonitorJobID $MonitorJobID`\n' |
1198 |
|
txt += ' echo "Result of parsing the FrameworkJobReport crab_fjr.xml: $cmd_out"\n' |
1199 |
< |
txt += ' executable_exit_status=`echo $cmd_out | awk -F\; "{print $1}" | awk -F ' ' "{print $NF}"`\n' |
1199 |
> |
txt += ' tmp_executable_exit_status=`echo $cmd_out | awk -F\; \'{print $1}\' | awk -F \' \' \'{print $NF}\'`\n' |
1200 |
> |
txt += ' if [ -n $tmp_executable_exit_status ];then\n' |
1201 |
> |
txt += ' executable_exit_status=$tmp_executable_exit_status\n' |
1202 |
> |
txt += ' fi\n' |
1203 |
|
txt += ' if [ $executable_exit_status -eq 50115 ];then\n' |
1204 |
|
txt += ' echo ">>> crab_fjr.xml contents: "\n' |
1205 |
|
txt += ' cat $RUNTIME_AREA/crab_fjr_NJob.xml\n' |