def hook_m_0(self):
e.log.info('Hey! It\'s me, the dummy extension in your main pipeline! (at time 0)')
- e.main_pipe.insert(hook_m_0, 'exts.dummy.hook_m_0', 0)
+ e.main_pipe.insert(0, 'exts.dummy.hook_m_0', hook_m_0)
def hook_m_79(self):
e.log.info('Me, the dummy extension, requies no cleanup! (at time 79)')
- e.main_pipe.insert(hook_m_79, 'exts.dummy.hook_m_79', 79)
+ e.main_pipe.insert(79, 'exts.dummy.hook_m_79', hook_m_79)
def hook_t_42(self):
t = 'It\'s test %s and the dummy extension did nothing! (at time 42)' % e['TEST']
e.log.info(t)
e.log.user.info(t)
- e.test_pipe.insert(hook_t_42, 'exts.dummy.hook_t_42', 42)
+ e.test_pipe.insert(42, 'exts.dummy.hook_t_42', hook_t_42)
def hook_m_50(self):
e.log.info('Here should be compiling')
- e.main_pipe.insert(hook_m_50, 'dummy tasktype hook_m_50', 50)
+ e.main_pipe.insert(50, 'dummy tasktype hook_m_50', hook_m_50)
def hook_m_60(self):
e.log.info('Here should be test pipeline running')
e.test_pipeline.run()
testvar.remove_operation(op)
- e.main_pipe.insert(hook_m_60, 'dummy tasktype hook_m_60', 60)
+ e.main_pipe.insert(60, 'dummy tasktype hook_m_60', hook_m_60)
def hook_t_30(self):
e.log.info("Maybe we should do something? Nah...")
- e.test_pipe.insert(hook_t_30, 'dummy tasktype hook_t_30', 30)
+ e.test_pipe.insert(30, 'dummy tasktype hook_t_30', hook_t_30)