scheduler: update to latest Agent interface