Ankur Verma
Ankur Verma

Reputation: 95

Run a Google Cloud Function at specific time only once

I have job(script) which is written in nodejs.

I have another API which writes data (Id and time-t1) to the Cloud Spanner. As soon as the API is a hit I want to run the same job at given time-t1 and pass id as parameter

Can I write some code in my API which will trigger the job at a given time (Note - for a single hit on API job should run job only once). I tried searching on the net but could only find periodic scheduler.

Upvotes: 5

Views: 4001

Answers (1)

user1623454
user1623454

Reputation: 284

In order to schedule a task for a specific dynamic time you can use Google Cloud Task and Google Cloud Functions Read it here: https://cloud.google.com/tasks/docs/tutorial-gcf

Upvotes: 3

Related Questions