add callback for scheduler

Change-Id: I3e03a1d6d90141e502652376459780af4464eb78
Merge "add callback for scheduler" into 0.3.x-scheduler