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 |
|
|
common.scheduler.listMatch(nj)
|
23 |
|
|
pass
|
24 |
|
|
|
25 |
|
|
return
|