How to increase Cloud Scheduler request timeout deadline?

前端 未结 2 715
青春惊慌失措
青春惊慌失措 2021-01-25 01:37

I want to migrate from App Engine Cron jobs to Cloud Scheduler, but in Cloud Scheduler the request deadline timeout is 60 seconds, not the 10 minutes that has the requests from

2条回答
  •  孤城傲影
    2021-01-25 02:18

    When we look at Cloud Scheduler, we see that when the time is reached to fire a job the request to fire that job may fail. At this point, the request will be retried based on the configuration of that job ... see:

    https://cloud.google.com/sdk/gcloud/reference/beta/scheduler/jobs/create/http

    Among these settings we find:

    • --max-backoff
    • --max-doublings
    • --max-retry-attempts
    • --max-retry-duration
    • --min-backoff

    It seems that if we want to keep trying for a solid 10 minutes we might be able to specify:

    • --max-backoff: 0s
    • --max-doublings: 0
    • --max-retry-attempts: 0
    • --max-retry-duration: 10m
    • --min-backoff: 0s

提交回复
热议问题