I need develop functionality with execution http request more than 30 days. For example in the same day on next year. I try to use Google Task, but receive this error message "Uncaught Error Error: 3 INVALID_ARGUMENT: The Task.scheduleTime, 2024-11-30T15:00:00-08:00, is too far in the future. Schedule time must be no more than 720h in the future."
Some developers advice me to use Firebase to receive long time delay, but don't explain details. Is it true? Is this functionality exist on Firebase? And how to do this?
Solved! Go to Solution.
Don't know the answer to Firebase but you can solve your underlying problem by using 2 tasks.
Imagine you have a function you want to run in 40 days
a) You schedule Task 1 to run in say 25 days from now.
b) In 25 days, Task 1 kicks off and simply calls another endpoint which then creates a new task (Task 2) scheduled to run 15 days (40 -25) from that day
Don't know the answer to Firebase but you can solve your underlying problem by using 2 tasks.
Imagine you have a function you want to run in 40 days
a) You schedule Task 1 to run in say 25 days from now.
b) In 25 days, Task 1 kicks off and simply calls another endpoint which then creates a new task (Task 2) scheduled to run 15 days (40 -25) from that day
Maybe... this is kind of solution, yes. Thanks.