Search code examples
google-cloud-rungoogle-cloud-scheduler

What means attempt_deadline in Google Scheduler if in Google Cloud Run jobs I want a trigger a long job


Let's make this case: I set a Google Cloud Run job with a timeout, for example, 4 hours. The job task execution time is 3 hours.

I want to trigger it using Google Cloud Scheduler in a cronjob with a attempt_deadline parameter of 120 seconds in a terraform plan.

The job executes fine, but I am worried about the job could be canceled because of attempt_deadline.

Is it related to Google Cloud Run jobs and will cancel it while my job is running? If it is, is there an approach to trigger the job? Or the attempt_deadline option is only for the timeout of the request that Google Cloud Scheduler sends to the job to execute it?

Thank you so much


Solution

  • After we tried it, the attemp_deadline parameter didn't canceled the job. So it may be not related to the job execution time.