[minor] rearrange spool management in scheduler