How to create Google Cloud task sheduled on time?

  Kiến thức lập trình

I need to create Google cloud task with long time of retry (a year for example), this will be simple post request to endpoint of my application.
I created task with

       const task = {
            ...
            scheduleTime: {
                      seconds: expirationAtSeconds,
            }
        }
       const [response] = await this.taskClient.createTask(request);

Task created successfully, but I want to delay for next execution at 17202815 seconds, this means task must raise 2024-12-01, but task run immediately in seconds, not how I expected. What I doing wrong?

LEAVE A COMMENT