Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to schedule jobs for python code in Firebase?

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

like image 447
fallen Avatar asked Feb 12 '26 20:02

fallen


2 Answers

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

Google App Engine provides a Cron service. Using this service for scheduling and Google Cloud Pub/Sub for distributed messaging, you can build an application to reliably schedule tasks which can trigger Google Cloud Functions. https://github.com/firebase/functions-cron

like image 61
smallwat3r Avatar answered Feb 14 '26 09:02

smallwat3r


You can now use Google Cloud Scheduler to trigger jobs via Google Pub/Sub - it's a fully managed service and very cheap to run. See here: https://cloud.google.com/scheduler/

like image 24
Matthew P Avatar answered Feb 14 '26 09:02

Matthew P