Reputation: 95
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
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