Fix the build error

@Benglin PTAL

The scheduler is disabled for the release build as well. At the same time, I have changed the related function name.