Revision: | 1.2 |
Committed: | Mon Jul 25 14:31:24 2005 UTC (19 years, 9 months ago) by slacapra |
Content type: | text/x-python |
Branch: | MAIN |
CVS Tags: | CRAB_1_0_2, CRAB_0_2_2, CRAB_1_0_1, CRAB_1_0_0_rc1, CRAB_1_0_0_beta4, CRAB_1_0_0_pre1_boss_2, CRAB_1_0_0_pre1_boss, CRAB_1_0_0_pre3, CRAB_1_0_0_pre2, CRAB_1_0_0_pre1 |
Changes since 1.1: | +4 -1 lines |
Log Message: | too many changes to be listed... |
# | User | Rev | Content |
---|---|---|---|
1 | slacapra | 1.1 | from Actor import * |
2 | import common | ||
3 | |||
4 | class Checker(Actor): | ||
5 | def __init__(self, cfg_params, nj_list): | ||
6 | self.cfg_params = cfg_params | ||
7 | self.nj_list = nj_list | ||
8 | return | ||
9 | |||
10 | def run(self): | ||
11 | """ | ||
12 | The main method of the class. | ||
13 | """ | ||
14 | common.logger.debug(5, "Checker::run() called") | ||
15 | |||
16 | if len(self.nj_list)==0: | ||
17 | common.logger.debug(5, "No jobs to check") | ||
18 | return | ||
19 | |||
20 | # run a list-match on first job | ||
21 | for nj in self.nj_list: | ||
22 | slacapra | 1.2 | match = common.scheduler.listMatch(nj) |
23 | flag = '' | ||
24 | if not match: flag=' NOT ' | ||
25 | common.logger.message("Job #"+str(nj+1)+" does "+flag+" matches resources") | ||
26 | slacapra | 1.1 | pass |
27 | |||
28 | return |