如何在Firebase中计划python代码的作业? [英] How to schedule jobs for python code in Firebase?

查看:54
本文介绍了如何在Firebase中计划python代码的作业?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使我的代码每天在Firebase服务器中运行一次.该代码使用了一些从HTTP库中提取数据的方法.经过一番搜索,我找不到合适的结果.您能给我说明如何做吗?预先感谢

I want to make my code run once a day in firebase server. The code is using some pulling data out of HTTP libraries as beautiful soup. I could not find appropriate result after some search. Can you give me instructions how to do it? Thanks in advance

推荐答案

您可以查看 function-cron ,该功能可让您在 Firebase 中安排cron作业.

You could have a look to function-cron which allows you to schedule cron jobs in Firebase.

Google App Engine提供Cron服务.将此服务用于安排和使用Google Cloud Pub/Sub进行分布式消息传递,您可以生成一个应用程序以可靠地计划可以触发的任务Google Cloud Functions. https://github.com/firebase/functions-cron

这篇关于如何在Firebase中计划python代码的作业?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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