ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CRAB/python/SchedulerCaf.py
(Generate patch)

Comparing COMP/CRAB/python/SchedulerCaf.py (file contents):
Revision 1.20 by belforte, Thu Jun 14 15:40:30 2012 UTC vs.
Revision 1.21 by belforte, Thu Jan 17 14:48:12 2013 UTC

# Line 71 | Line 71 | class SchedulerCaf(SchedulerLsf) :
71  
72          txt += '    cp *.${LSB_BATCH_JID}.out CMSSW_${NJob}.stdout \n'
73          txt += '    cp *.${LSB_BATCH_JID}.err CMSSW_${NJob}.stderr \n'
74        txt += '    tar zcvf ${out_files}.tgz  ${filesToCheck}\n'
75        txt += '    tmp_size=`ls -gGrta ${out_files}.tgz | awk \'{ print $3 }\'`\n'
76        txt += '    rm ${out_files}.tgz\n'
77        txt += '    size=`expr $tmp_size`\n'
78        txt += '    echo "Total Output dimension: $size"\n'
79        txt += '    limit='+str(self.OSBsize) +' \n'
80        txt += '    echo "WARNING: output files size limit is set to: $limit"\n'
81        txt += '    if [ "$limit" -lt "$size" ]; then\n'
82        txt += '        exceed=1\n'
83        txt += '        job_exit_code=70000\n'
84        txt += '        echo "Output Sanbox too big. Produced output is lost "\n'
85        txt += '    else\n'
86        txt += '        exceed=0\n'
87        txt += '        echo "Total Output dimension $size is fine."\n'
88        txt += '    fi\n'
89
90        txt += '    echo "JOB_EXIT_STATUS = $job_exit_code"\n'
91        txt += '    echo "JobExitCode=$job_exit_code" >> $RUNTIME_AREA/$repo\n'
92        txt += '    dumpStatus $RUNTIME_AREA/$repo\n'
93        txt += '    if [ $exceed -ne 1 ]; then\n'
94        txt += '        tar zcvf ${out_files}.tgz  ${final_list}\n'
95        txt += '    else\n'
96        txt += '        tar zcvf ${out_files}.tgz CMSSW_${NJob}.stdout CMSSW_${NJob}.stderr\n'
97        txt += '    fi\n'
98        txt += '    python $RUNTIME_AREA/fillCrabFjr.py $RUNTIME_AREA/crab_fjr_$NJob.xml --errorcode $job_exit_code \n'
74          txt += '    exit $job_exit_code\n'
75          txt += '}\n'
76          return txt

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines