Ejemplo n.º 1
0
 def __init__(self):
     init_logging_config()
     self.log = logging.getLogger('elric.master')
     # TODO: avoid hard code
     self.func_map = {
         '__elric_submit_channel__': self.submit_job,
         '__elric_remove_channel__': self.remove_job,
         '__elric_finish_channel__': self.finish_job
     }
Ejemplo n.º 2
0
 def __init__(self, name, logger_name):
     init_logging_config()
     self.log = logging.getLogger(logger_name)
     self.name = name
     if not getattr(self, 'name', None):
         raise ValueError("%s must have a name" % type(self).__name__)