add task_manager.process_event()

Change-Id: Ie91c9f687a3b39adc690ee78deca190e57dc95a0