ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CRAB/python/ResubmitterServer.py
Revision: 1.6
Committed: Thu Jan 17 16:24:16 2013 UTC (12 years, 3 months ago) by slacapra
Content type: text/x-python
Branch: MAIN
CVS Tags: CRAB_2_9_1, CRAB_2_9_1_pre2, CRAB_2_9_1_pre1, CRAB_2_9_0, CRAB_2_9_0_pre2, CRAB_2_9_0_pre1, CRAB_2_8_8, CRAB_2_8_8_pre1, CRAB_2_8_7_patch3, CRAB_2_8_7_patch2, CRAB_2_8_7_patch1, CRAB_2_8_7, CRAB_2_8_7_pre2, CRAB_2_8_7_pre1, CRAB_2_8_6, CRAB_2_8_6_pre1, CRAB_2_8_5_patch3, CRAB_2_8_5_patch2, CRAB_2_8_5_patch1, CRAB_2_8_5, CRAB_2_8_5_pre5, CRAB_2_8_5_pre4, CRAB_2_8_5_pre3, HEAD
Changes since 1.5: +4 -1 lines
Log Message:
implement -resubmit bad as per task #39244

File Contents

# Content
1 from SubmitterServer import SubmitterServer
2 from Resubmitter import Resubmitter
3 import common
4 from crab_util import *
5
6 class ResubmitterServer(SubmitterServer, Resubmitter):
7 def __init__(self, cfg_params, jobs):
8 self.cfg_params = cfg_params
9
10 self.copy_data = int(cfg_params.get('USER.copy_data',0))
11 self.check_RemoteDir = int(cfg_params.get('USER.check_user_remote_dir',0))
12
13 nj_list = []
14
15 # get updated status from server
16 try:
17 from StatusServer import StatusServer
18 stat = StatusServer(self.cfg_params)
19 warning_msg = stat.resynchClientSide()
20 if warning_msg is not None:
21 common.logger.info(warning_msg)
22 except:
23 pass
24
25 if (jobs=='bad'):
26 nj_list = self.checkBadJob(nj_list)
27 else:
28 nj_list = self.checkAllowedJob(jobs,nj_list)
29
30 SubmitterServer.__init__(self, cfg_params, nj_list, 'range')
31
32 return
33
34