72 |
|
# May have problems with onlyOSG being false, probably due to lengths of lists and command line. |
73 |
|
# Either re-write osg_bdii.py with a proper ldap library or break the queries apart |
74 |
|
|
75 |
– |
#scram = Scram.Scram(None) |
76 |
– |
#versionCMSSW = scram.getSWVersion() |
77 |
– |
#arch = scram.getArch() |
78 |
– |
|
75 |
|
if self.selectNoInput: |
76 |
|
return [True] |
77 |
< |
|
77 |
> |
else: |
78 |
> |
return SchedulerLocal.listMatch(self, seList, full) |
79 |
|
|
80 |
|
def decodeLogInfo(self, file): |
81 |
|
""" |
96 |
|
txt += '#\n\n' |
97 |
|
|
98 |
|
txt += 'func_exit() { \n' |
99 |
< |
txt += ' if [ $PYTHONPATH ]; then \n' |
100 |
< |
txt += ' update_fjr\n' |
104 |
< |
txt += ' fi\n' |
105 |
< |
txt += ' for file in $filesToCheck ; do\n' |
106 |
< |
txt += ' if [ -e $file ]; then\n' |
107 |
< |
txt += ' echo "tarring file $file in $out_files"\n' |
108 |
< |
txt += ' else\n' |
109 |
< |
txt += ' echo "WARNING: output file $file not found!"\n' |
110 |
< |
txt += ' fi\n' |
111 |
< |
txt += ' done\n' |
112 |
< |
txt += ' final_list=$filesToCheck\n' |
113 |
< |
txt += ' echo "JOB_EXIT_STATUS = $job_exit_code"\n' |
114 |
< |
txt += ' echo "JobExitCode=$job_exit_code" >> $RUNTIME_AREA/$repo\n' |
115 |
< |
txt += ' dumpStatus $RUNTIME_AREA/$repo\n' |
99 |
> |
txt += self.wsExitFunc_common() |
100 |
> |
|
101 |
|
txt += ' tar zcvf ${out_files}.tgz ${final_list}\n' |
102 |
|
txt += ' cp ${out_files}.tgz $ORIG_WD/\n' |
103 |
|
txt += ' cp crab_fjr_$NJob.xml $ORIG_WD/\n' |