Skip to content

Commit

Permalink
Change max dispatches from int to double (#138)
Browse files Browse the repository at this point in the history
Change max dispatches from int to double
  • Loading branch information
chrisst authored Jan 14, 2020
2 parents c433573 + 3c6e3c1 commit cc6db3c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
19 changes: 10 additions & 9 deletions plugins/modules/gcp_cloudtasks_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,10 @@
type: str
rate_limits:
description:
- 'Rate limits for task dispatches. The queue''s actual dispatch rate is the result
of: * Number of tasks in the queue * User-specified throttling: rateLimits,
retryConfig, and the queue''s state.'
- Rate limits for task dispatches.
- 'The queue''s actual dispatch rate is the result of: * Number of tasks in the
queue * User-specified throttling: rateLimits, retryConfig, and the queue''s
state.'
- "* System throttling due to 429 (Too Many Requests) or 503 (Service Unavailable)
responses from the worker, high error rates, or to smooth sudden large traffic
spikes."
Expand All @@ -97,7 +98,7 @@
- The maximum rate at which tasks are dispatched from this queue.
- If unspecified when the queue is created, Cloud Tasks will pick the default.
required: false
type: int
type: str
max_concurrent_dispatches:
description:
- The maximum number of concurrent tasks that Cloud Tasks allows to be dispatched
Expand Down Expand Up @@ -253,9 +254,9 @@
type: str
rateLimits:
description:
- 'Rate limits for task dispatches. The queue''s actual dispatch rate is the result
of: * Number of tasks in the queue * User-specified throttling: rateLimits, retryConfig,
and the queue''s state.'
- Rate limits for task dispatches.
- 'The queue''s actual dispatch rate is the result of: * Number of tasks in the
queue * User-specified throttling: rateLimits, retryConfig, and the queue''s state.'
- "* System throttling due to 429 (Too Many Requests) or 503 (Service Unavailable)
responses from the worker, high error rates, or to smooth sudden large traffic
spikes."
Expand All @@ -267,7 +268,7 @@
- The maximum rate at which tasks are dispatched from this queue.
- If unspecified when the queue is created, Cloud Tasks will pick the default.
returned: success
type: int
type: str
maxConcurrentDispatches:
description:
- The maximum number of concurrent tasks that Cloud Tasks allows to be dispatched
Expand Down Expand Up @@ -375,7 +376,7 @@ def main():
state=dict(default='present', choices=['present', 'absent'], type='str'),
name=dict(type='str'),
app_engine_routing_override=dict(type='dict', options=dict(service=dict(type='str'), version=dict(type='str'), instance=dict(type='str'))),
rate_limits=dict(type='dict', options=dict(max_dispatches_per_second=dict(type='int'), max_concurrent_dispatches=dict(type='int'))),
rate_limits=dict(type='dict', options=dict(max_dispatches_per_second=dict(type='str'), max_concurrent_dispatches=dict(type='int'))),
retry_config=dict(
type='dict',
options=dict(
Expand Down
9 changes: 5 additions & 4 deletions plugins/modules/gcp_cloudtasks_queue_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,10 @@
type: str
rateLimits:
description:
- 'Rate limits for task dispatches. The queue''s actual dispatch rate is the
result of: * Number of tasks in the queue * User-specified throttling: rateLimits,
retryConfig, and the queue''s state.'
- Rate limits for task dispatches.
- 'The queue''s actual dispatch rate is the result of: * Number of tasks in
the queue * User-specified throttling: rateLimits, retryConfig, and the queue''s
state.'
- "* System throttling due to 429 (Too Many Requests) or 503 (Service Unavailable)
responses from the worker, high error rates, or to smooth sudden large traffic
spikes."
Expand All @@ -164,7 +165,7 @@
- The maximum rate at which tasks are dispatched from this queue.
- If unspecified when the queue is created, Cloud Tasks will pick the default.
returned: success
type: int
type: str
maxConcurrentDispatches:
description:
- The maximum number of concurrent tasks that Cloud Tasks allows to be dispatched
Expand Down

0 comments on commit cc6db3c

Please sign in to comment.