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

Comparing COMP/CRAB/python/SchedulerRemoteglidein.py (file contents):
Revision 1.10 by belforte, Wed Dec 12 21:20:20 2012 UTC vs.
Revision 1.12 by belforte, Thu Jan 3 19:55:23 2013 UTC

# Line 159 | Line 159 | class SchedulerRemoteglidein(SchedulerGr
159              glideinTime = "%d" % (int(self.EDG_clock_time)+5) # 5 min to wrapup
160              jobParams += '+MaxWallTimeMins = '+ glideinTime + '; '
161          else:
162 <            jobParams += '+MaxWallTimeMins = %d; ' % (60*22)
162 >            jobParams += '+MaxWallTimeMins = %d; ' % (60*22 - 5) # 22h default in glidein, 5min to wrap
163  
164          if self.max_rss :
165              jobParams += 'request_memory = '+self.max_rss+';'
# Line 239 | Line 239 | class SchedulerRemoteglidein(SchedulerGr
239  
240          txt += 'func_exit() { \n'
241          txt += self.wsExitFunc_common()
242 <
242 >        txt += '#Check for stdout/err in new location as of condor 7.7\n'
243 >        txt += '    if [ -s _condor_stdout ]; then\n'
244 >        txt += '      echo "Found _condor_stdout/err, rename for OSB"\n'
245 >        txt += '      cp -pfv _condor_stdout CMSSW_${NJob}.stdout\n'
246 >        txt += '      cp -pfv _condor_stderr CMSSW_${NJob}.stderr\n'
247 >        txt += '    fi\n'
248          txt += '    tar zcvf ${out_files}.tgz  ${final_list}\n'
249          txt += '    tmp_size=`ls -gGrta ${out_files}.tgz | awk \'{ print $3 }\'`\n'
250          txt += '    rm ${out_files}.tgz\n'

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines