Relative Content

Tag Archive for google-cloud-functionsgoogle-cloud-tasks

Cloud Tasks does not updating from firestore timestamp

I’m trying to write a code for Cloud Tasks. In my task I need to involk a timestamp from Firestore collection with the field TimestampDeparture. The “TimestampDeparture” is a future time. I want that when the now = admin.firestore.Timestamp.now(); gets to the “TimestampDeparture”, the field “PostStatus” should be updated to “Started”.

Cloud Functions: Can’t see function logs in function explorer

When I deployed my Cloud Functions previously I could see the logs and everything in the logs explorer. However, there were some errors and upon some research, I found that in order to get my queue in the functions I have to create it Cloud Functions SDK. So I downloaded it. The installation requires Python so I downloaded it as well. I created my queue Id successfully and I placed it in my functions.

Running a Google Cloud function once at a scheduled time

I have a Google Cloud function that runs every 15 minutes.
However, I don’t want it to run every 15 mins. I just want it to run once. So I was suggested to use Google Cloud Tasks. However, I’m finding it difficult to implement the code.
So the whole thing is that a user from my Flutter app makes a post with the collection “ADS”. The collection has the following fields.

Use google tasks to update data in firestore

I have a Google Cloud function that runs every 15 minutes.
However, I don’t want it to run every 15 mins. I just want it to run once. So I was suggested to use Google Cloud Tasks. However, I’m finding it difficult to implement the code.
So the whole thing is that a user from my Flutter app makes a post with the collection “ADS”. The collection has the following fields.