Support returners in scheduler.

Closes #8367
Merge pull request #12825 from cachedout/8367

Support returners in scheduler.