204 |
|
try: self.schedulerName = cfg_params['CRAB.scheduler'] |
205 |
|
except KeyError: self.scheduler = '' |
206 |
|
|
207 |
– |
self.UseServer=0 |
208 |
– |
try: |
209 |
– |
self.UseServer=int(cfg_params['CRAB.server_mode']) |
210 |
– |
except KeyError: |
211 |
– |
pass |
212 |
– |
|
207 |
|
return |
208 |
|
|
209 |
|
|
676 |
|
#xml.write('<task name="' +str(taskName)+'" sub_path="' +common.work_space.pathForTgz() + 'share/.boss_cache">\n') |
677 |
|
|
678 |
|
#xml.write('<task name="' +str(taskName)+ '" sub_path="' +common.work_space.pathForTgz() + 'share/.boss_cache"' + '" task_info="' + os.path.expandvars('X509_USER_PROXY') + '">\n') |
679 |
< |
if (self.UseServer== 9999): |
680 |
< |
xml.write('<task name="' +str(taskName)+ '" sub_path="' +common.work_space.pathForTgz() + 'share/.boss_cache"' + ' task_info="' + os.environ["X509_USER_PROXY"] + '">\n') |
681 |
< |
else: |
688 |
< |
xml.write('<task name="' +str(taskName)+ '" sub_path="' +common.work_space.pathForTgz() + 'share/.boss_cache"' + ' task_info="NONE">\n') |
689 |
< |
|
679 |
> |
x509_cmd = 'ls /tmp/x509up_u`id -u`' |
680 |
> |
x509=runCommand(x509_cmd).strip() |
681 |
> |
xml.write('<task name="' +str(taskName)+ '" sub_path="' +common.work_space.pathForTgz() + 'share/.boss_cache"' + ' task_info="' + str(x509) + '">\n') |
682 |
|
xml.write(jt_string) |
683 |
|
|
684 |
|
if (to_write != ''): |