scheduler: improve the scheduler-proxy spawn