Firebase的云端函数能够及时触发? [英] Cloud Functions for Firebase trigger on time?

查看:165
本文介绍了Firebase的云端函数能够及时触发?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种方法来安排Firebase的云端功能,换句话说就是在特定的时间触发它们。

解决方案

目前还没有内置的runat / cron类型的触发器。

目前,最好的选择是使用外部服务定期触发一个HTTP函数。请参阅函数样本库中的示例以获取更多信息。



我也极力推荐您在Firebase博客上阅读这篇文章:使用HTTP触发器和Cron为Firebase定时云端功能


I am looking for a way to schedule Cloud Functions for Firebase or in other words trigger them on a specific time.

解决方案

There is no built-in runat/cron type trigger yet.

For the moment, the best option is to use an external service to trigger a HTTP function periodically. See this sample in the functions-samples repo for more information.

I also highly recommend reading this post on the Firebase blog: How to Schedule (Cron) Jobs with Cloud Functions for Firebase and this video: Timing Cloud Functions for Firebase using an HTTP Trigger and Cron.

这篇关于Firebase的云端函数能够及时触发?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆