예제 #1
0
        def sender(scheduler):
            e = peachbox.scheduler.Event('e1')
            status = scheduler.get_event_status(e.name())
            status.update({'status':'success'})
            e.set_status(status)

            scheduler.publish(e)
예제 #2
0
        def sender(scheduler):
            e = peachbox.scheduler.Event('e1')
            status = scheduler.get_event_status(e.name())
            status.update({'status': 'success'})
            e.set_status(status)

            scheduler.publish(e)
예제 #3
0
 def consumer(scheduler):
     self.assertEqual(scheduler.get_event_status('e1'), {'k':'process_v'})
예제 #4
0
 def consumer(scheduler):
     self.assertEqual(scheduler.get_event_status('e1'),
                      {'k': 'process_v'})