unite poll defaults (#55470)

* unite poll defaults and update docs
This commit is contained in:
Brian Coca 2019-05-01 14:47:50 -04:00 committed by Alicia Cozine
parent ac657f67c0
commit 5d4c73e197
3 changed files with 4 additions and 2 deletions

View file

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

View file

@ -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 To launch a task asynchronously, specify its maximum runtime
and how frequently you would like to poll for status. The default 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`::
--- ---

View file

@ -79,7 +79,7 @@ class Task(Base, Conditional, Taggable, CollectionSearch):
_loop = FieldAttribute() _loop = FieldAttribute()
_loop_control = FieldAttribute(isa='class', class_type=LoopControl, inherit=False) _loop_control = FieldAttribute(isa='class', class_type=LoopControl, inherit=False)
_notify = FieldAttribute(isa='list') _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) _register = FieldAttribute(isa='string', static=True)
_retries = FieldAttribute(isa='int', default=3) _retries = FieldAttribute(isa='int', default=3)
_until = FieldAttribute(isa='list', default=list) _until = FieldAttribute(isa='list', default=list)