add get_host api to scheduler