def get_mon_env_dict(self): result = { 'TASK_NAME': self._taskname, 'DB_EXEC': self._app, 'DATASETNICK': '' } result.update(RemoteEventHandler.get_mon_env_dict(self)) return result
def __init__(self, config, name): name = (name or self.__class__.__name__).upper().replace('.', '_') NamedPlugin.__init__(self, config, name) self._wait_idle = config.get_int('wait idle', 60, on_change=None) self._wait_work = config.get_int('wait work', 10, on_change=None) self._job_parser = config.get_plugin('job parser', 'JobInfoProcessor', cls='JobInfoProcessor', on_change=None) self._remote_event_handler = config.get_composited_plugin( ['remote monitor', 'remote event handler'], '', 'MultiRemoteEventHandler', cls=RemoteEventHandler, bind_kwargs={'tags': [self]}, require_plugin=False, on_change=TriggerInit('sandbox')) or RemoteEventHandler(config, 'dummy')
def __init__(self, config, name): RemoteEventHandler.__init__(self, config, name) self._app = config.get('application', 'shellscript', on_change=None) self._taskname = config.get('task name', '@GC_TASK_ID@_@DATASETNICK@', on_change=None)
def get_mon_env_dict(self): result = {'TASK_NAME': self._taskname, 'DB_EXEC': self._app, 'DATASETNICK': ''} result.update(RemoteEventHandler.get_mon_env_dict(self)) return result