I have written python code to move data from firestore to Bigquery. How can I run this code at a specified time every day? Please help beginner
Asked
Active
Viewed 517 times
2
-
Have you looked into Cloud Scheduler calling a Cloud Functions or Cloud Run service endpoint? There is also App Engine, Firebase and Compute Engine. – John Hanley Apr 23 '20 at 04:39
1 Answers
2
The most economical way would be to use Google Cloud Scheduler. It can initiate a job that runs on a schedule, similar to corn. Then via Pub/Sub it can invoke Google Cloud Function with your code.
Here is the tutorial, describing exactly that: https://cloud.google.com/scheduler/docs/tut-pub-sub Just use Python, instead of JavaScript for runtime.

Anton
- 3,587
- 2
- 12
- 27