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.17 by spiga, Tue May 4 17:24:59 2010 UTC vs.
Revision 1.18 by fanzago, Thu Jul 14 16:33:29 2011 UTC

# Line 42 | Line 42 | class SchedulerCaf(SchedulerLsf) :
42          if (self.group): sched_param += ' -G '+str(self.group).upper() +' '
43          return sched_param
44  
45 <
46 < #    def wsSetupEnvironment(self):
47 < #        """
48 < #        Returns part of a job script which does scheduler-specific work.
49 < #        """
50 < #        txt = SchedulerLsf.wsSetupEnvironment(self)
51 < #        txt += '# CAF specific stuff\n'
52 < #        #txt += 'export STAGE_SVCCLASS=cmscaf \n'
53 < #        txt += '\n'
54 < #        return txt
45 >    ###### FEDE FOR 84387 bug ######
46 >    def wsSetupEnvironment(self):
47 >        #Returns part of a job script which does scheduler-specific work.
48 >        txt = SchedulerLsf.wsSetupEnvironment(self)
49 >        txt += '# CAF specific stuff\n'
50 >        txt += 'echo "----- ENV CAF BEFORE sourcing /afs/cern.ch/cms/caf/setup.sh  -----"\n'
51 >        txt += 'echo "CMS_PATH = $CMS_PATH"\n'
52 >        txt += 'echo "STAGE_SVCCLASS = $STAGE_SVCCLASS"\n'
53 >        txt += 'echo "STAGER_TRACE = $STAGER_TRACE"\n'
54 >        txt += 'source /afs/cern.ch/cms/caf/setup.sh \n'
55 >        txt += '\n'
56 >        txt += 'echo "----- ENV CAF AFTER sourcing /afs/cern.ch/cms/caf/setup.sh  -----"\n'
57 >        txt += 'echo "CMS_PATH = $CMS_PATH"\n'
58 >        txt += 'echo "STAGE_SVCCLASS = $STAGE_SVCCLASS"\n'
59 >        txt += 'echo "STAGER_TRACE = $STAGER_TRACE"\n'
60 >        txt += '\n'
61 >        return txt
62 >    #############################
63  
64      def wsCopyOutput(self):
65          ### default is the name of the storage pool

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines