store scheduler task PID in schedule_queue.pid