Why not inline the getAll with scheduleExec instead of direct child_process.spawn? It would add logging and timeout for free.