我创建了4个计划的云功能:
export const a_scheduled = functions.pubsub.schedule('0 0 * * *').onRun(a);
export const b_scheduled = functions.pubsub.schedule('0 22 * * *').onRun(b);
export const c_scheduled = functions.pubsub.schedule('0 21 * * *').onRun(c);
export const d_scheduled = functions.pubsub.schedule('every 5 minutes').onRun(d);
但是,当我部署它们时,第一个(a_scheduled
)会部署好,其余的会显示以下错误:
!函数:无法创建函数b_scheduled HTTP错误:400, 该请求有错误!函数:创建函数失败 c_scheduled HTTP错误:400,请求有错误!功能: 无法创建函数d_scheduled HTTP错误:400,请求具有 错误
我不清楚为什么会发生这种错误。我在文档(https://firebase.google.com/docs/functions/schedule-functions)中找不到任何相关内容