unite poll defaults (#55470)

* unite poll defaults and update docs
pull/56004/head
Brian Coca 6 years ago committed by Alicia Cozine
parent ac657f67c0
commit 5d4c73e197

@ -0,0 +1,2 @@
bugfixes:
- Use async poll default setting for play tasks also, previouslly in only affected adhoc ansible.

@ -21,7 +21,7 @@ In this case, however, `async` explicitly sets the timeout you wish to apply to
To launch a task asynchronously, specify its maximum runtime
and how frequently you would like to poll for status. The default
poll value is 15 seconds if you do not specify a value for `poll`::
poll value is set by the ``DEFAULT_POLL_INTERVAL`` setting if you do not specify a value for `poll`::
---

@ -79,7 +79,7 @@ class Task(Base, Conditional, Taggable, CollectionSearch):
_loop = FieldAttribute()
_loop_control = FieldAttribute(isa='class', class_type=LoopControl, inherit=False)
_notify = FieldAttribute(isa='list')
_poll = FieldAttribute(isa='int', default=10)
_poll = FieldAttribute(isa='int', default=C.DEFAULT_POLL_INTERVAL)
_register = FieldAttribute(isa='string', static=True)
_retries = FieldAttribute(isa='int', default=3)
_until = FieldAttribute(isa='list', default=list)

Loading…
Cancel
Save