Typescript Firestore多时间批提交挂起,没有任何响应

Typescript Firestore多时间批提交挂起,没有任何响应,typescript,firebase,google-cloud-firestore,batch-processing,Typescript,Firebase,Google Cloud Firestore,Batch Processing,我在尝试定期更新文档集合或尝试写入大量数据时遇到了Firestore批量提交问题。Firestore似乎只是冻结,不会发送响应。在这两种情况下,都遵循最大批量(500)和文档大小的建议。例如,使用cron作业,提交会成功运行一段时间,然后完全停止,没有任何错误跟踪 例如,下面的代码在开始行为不端之前连续执行6次 public updateCoins=async()=>{ const markets=等待此消息。getMarkets('usd') const maxCount=Math.roun

我在尝试定期更新文档集合或尝试写入大量数据时遇到了Firestore批量提交问题。Firestore似乎只是冻结,不会发送响应。在这两种情况下,都遵循最大批量(500)和文档大小的建议。例如,使用cron作业,提交会成功运行一段时间,然后完全停止,没有任何错误跟踪

例如,下面的代码在开始行为不端之前连续执行6次

public updateCoins=async()=>{
const markets=等待此消息。getMarkets('usd')
const maxCount=Math.round(markets.length/this.FB\u BATCH\u SIZE)+1
for(设i=0;imarkets.length?markets.length:(i+1)*this.FB_BATCH_SIZE)
const batchCoins=this.fbService.db.batch()
marketBatch.map((条目)=>{
const coin=this.mapCoin(条目)
如果(硬币){
const coinsref=这个.coinsCol.doc(coin.id);
batchCoins.set(coinRef,coin,{merge:true})
}
}) 
等待batchCoins.commit()
.然后(()=>{
console.log('committed coins batch update')
}).catch((_e)=>{
console.log('Exception saving coins',_e)
})
}

}
您在什么环境下运行此脚本?我已经在我的机器(OSX)和服务器@DougStevenson上测试了脚本