diff --git a/products/cloudscheduler/ansible_version_added.yaml b/products/cloudscheduler/ansible_version_added.yaml index f9149e133699..1c443407e4e5 100644 --- a/products/cloudscheduler/ansible_version_added.yaml +++ b/products/cloudscheduler/ansible_version_added.yaml @@ -13,6 +13,8 @@ :version_added: '2.9' :timeZone: :version_added: '2.9' + :attemptDeadline: + :version_added: '2.9' :retryConfig: :version_added: '2.9' :retryCount: diff --git a/products/cloudscheduler/api.yaml b/products/cloudscheduler/api.yaml index 2db60f27cdbf..5dc6a72eb7e8 100644 --- a/products/cloudscheduler/api.yaml +++ b/products/cloudscheduler/api.yaml @@ -73,6 +73,16 @@ objects: required: false input: true default_value: 'Etc/UTC' + - !ruby/object:Api::Type::String + name: attemptDeadline + description: | + The deadline for job attempts. If the request handler doesn't respond by this dealine, + the request is cancelled and the attempt is marked as failed. For example, 20s + Value must end with a unit: s for seconds, m for minutes, h for hours. You can combine them for example 15m20s + Allowed value for HTTP target [15s, 30m], for App Engine HTTP target [15s, 24h] + required: false + input: true + default_value: '180s' - !ruby/object:Api::Type::NestedObject name: retryConfig description: | diff --git a/products/cloudscheduler/examples/ansible/job.yaml b/products/cloudscheduler/examples/ansible/job.yaml index 5948d5049033..764b7e4f237e 100644 --- a/products/cloudscheduler/examples/ansible/job.yaml +++ b/products/cloudscheduler/examples/ansible/job.yaml @@ -19,6 +19,7 @@ task: !ruby/object:Provider::Ansible::Task schedule: "*/4 * * * *" description: "test app engine job" time_zone: "Europe/London" + attempt_deadline: "10m30s" app_engine_http_target: http_method: "POST" app_engine_routing: