Revision: | 1.4 |
Committed: | Tue Oct 13 08:22:39 2009 UTC (15 years, 6 months ago) by spiga |
Content type: | text/x-python |
Branch: | MAIN |
CVS Tags: | CRAB_2_7_2_p1, CRAB_2_7_1_branch_firstMERGE, CRAB_2_7_2, CRAB_2_7_2_pre4, CRAB_2_7_2_pre3, CRAB_2_7_2_pre2, CRAB_2_7_2_pre1, CRAB_2_7_1, fede_170310, CRAB_2_7_1_pre12, CRAB_2_7_1_pre11, CRAB_2_7_1_pre10, CRAB_2_7_1_pre9, CRAB_LumiMask, CRAB_2_7_lumi, from_LimiMask, CRAB_2_7_1_pre8, CRAB_2_7_1_pre6, CRAB_2_7_1_pre5, CRAB_2_7_1_wmbs_pre4, CRAB_2_7_1_pre4, CRAB_2_7_1_pre3, CRAB_2_7_1_pre2, CRAB_2_7_1_pre1, CRAB_2_7_0, CRAB_2_7_0_pre8, CRAB_2_7_0_pre7, CRAB_2_7_0_pre6, CRAB_2_7_0_pre5 |
Branch point for: | CRAB_multiout, CRAB_2_7_1_branch, Lumi2_8 |
Changes since 1.3: | +3 -0 lines |
Log Message: | check remote dir before resubmission |
# | User | Rev | Content |
---|---|---|---|
1 | spiga | 1.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 | spiga | 1.4 | 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 | spiga | 1.1 | nj_list = [] |
14 | spiga | 1.2 | |
15 | # get updated status from server | ||
16 | try: | ||
17 | from StatusServer import StatusServer | ||
18 | stat = StatusServer(self.cfg_params) | ||
19 | stat.resynchClientSide() | ||
20 | except: | ||
21 | pass | ||
22 | |||
23 | slacapra | 1.3 | nj_list = self.checkAllowedJob(jobs,nj_list) |
24 | spiga | 1.1 | |
25 | SubmitterServer.__init__(self, cfg_params, nj_list, 'range') | ||
26 | |||
27 | return | ||
28 | |||
29 |