59 |
|
check = -1 |
60 |
|
if self.jobs != 'all': check = len( set(self.jobs).intersection(set(list_id_done)) ) |
61 |
|
if len(list_id_done)==0 or ( check == 0 ) : |
62 |
< |
msg='' |
63 |
< |
list_ID=[] |
64 |
< |
# for st,stDetail in self.possible_status.iteritems(): |
65 |
< |
# list_ID = common._db.queryAttrRunJob({'status':st},'jobId') |
66 |
< |
# if len(list_ID)>0: msg += " %i Jobs in status: %s \n" % (len(list_ID), str(stDetail)) |
67 |
< |
msg += 'Jobs %s are not in Done status. It is not possible yet to retrieve the output.'% readableList(self,self.jobs) |
62 |
> |
msg='' |
63 |
> |
list_jobs=self.jobs |
64 |
> |
if self.jobs == 'all': list_jobs=self.all_id |
65 |
> |
msg += 'Jobs %s are not in Done status. It is not possible yet to retrieve the output.'% readableList(self,list_jobs) |
66 |
|
raise CrabException(msg) |
67 |
|
else: |
68 |
|
if self.jobs == 'all': |