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

Comparing COMP/CRAB/python/SchedulerCondor.py (file contents):
Revision 1.14 by ewv, Fri Oct 10 19:24:44 2008 UTC vs.
Revision 1.15 by ewv, Tue Nov 25 22:24:23 2008 UTC

# Line 49 | Line 49 | class SchedulerCondor(SchedulerLocal) :
49              msg = "Error: datasetpath not defined "
50              raise CrabException(msg)
51  
52 +        self.return_data = cfg_params.get('USER.return_data', 0)
53 +        self.copy_data   = cfg_params.get("USER.copy_data", 0)
54 +
55 +        if ( int(self.return_data) == 0 and int(self.copy_data) == 0 ):
56 +            msg = 'Error: return_data and copy_data cannot be set both to 0\n'
57 +            msg = msg + 'Please modify your crab.cfg file\n'
58 +            raise CrabException(msg)
59 +
60 +        if ( int(self.return_data) == 1 and int(self.copy_data) == 1 ):
61 +            msg = 'Error: return_data and copy_data cannot be set both to 1\n'
62 +            msg = msg + 'Please modify your crab.cfg file\n'
63 +            raise CrabException(msg)
64 +
65 +        if ( int(self.copy_data) == 0 and int(self.publish_data) == 1 ):
66 +            msg = 'Warning: publish_data = 1 must be used with copy_data = 1\n'
67 +            msg = msg + 'Please modify copy_data value in your crab.cfg file\n'
68 +            common.logger.message(msg)
69 +            raise CrabException(msg)
70 +
71 +        if int(self.copy_data) == 1:
72 +            self.SE = cfg_params.get('USER.storage_element', None)
73 +            if not self.SE:
74 +                msg = "Error. The [USER] section has no 'storage_element'"
75 +                common.logger.message(msg)
76 +                raise CrabException(msg)
77 +
78 +            self.proxyValid = 0
79 +            self.dontCheckProxy = int(cfg_params.get("EDG.dont_check_proxy",0))
80 +            self.proxyServer = cfg_params.get("EDG.proxy_server",'myproxy.cern.ch')
81 +            common.logger.debug(5,'Setting myproxy server to ' + self.proxyServer)
82 +
83 +            self.group = cfg_params.get("EDG.group", None)
84 +            self.role  = cfg_params.get("EDG.role", None)
85 +            self.VO    = cfg_params.get('EDG.virtual_organization', 'cms')
86 +
87 +            self.checkProxy()
88 +
89          return
90  
91  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines