Skip to content

Commit

Permalink
added attempt-deadline to cloud_scheduler resource
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Blaquiere committed Jan 6, 2020
1 parent d5487ef commit db27d87
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions products/cloudscheduler/ansible_version_added.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
:version_added: '2.9'
:timeZone:
:version_added: '2.9'
:attemptDeadline:
:version_added: '2.9'
:retryConfig:
:version_added: '2.9'
:retryCount:
Expand Down
10 changes: 10 additions & 0 deletions products/cloudscheduler/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
1 change: 1 addition & 0 deletions products/cloudscheduler/examples/ansible/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit db27d87

Please sign in to comment.