I run a script weekly. Everything works well when I had less than 9k documents in the collection. I\'ve tried the async function to wait until the foreach end. but it didn\'