This commit adds a scheduler API call, ast_sched_replace that can be used