Back-End Engineer (Node.js): optimize task scheduler