mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-24 04:54:00 -07:00
win-async: fix race condition in async run (#43691)
This commit is contained in:
parent
08e8d8c1d5
commit
22b921d47f
3 changed files with 31 additions and 38 deletions
|
|
@ -1,21 +1,8 @@
|
|||
#!powershell
|
||||
# This file is part of Ansible
|
||||
#
|
||||
# Ansible is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# Ansible is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
# WANT_JSON
|
||||
# POWERSHELL_COMMON
|
||||
# Copyright: (c) 2018, Ansible Project
|
||||
|
||||
#Requires -Module Ansible.ModuleUtils.Legacy
|
||||
|
||||
$parsed_args = Parse-Args $args
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
- name: async fire and forget
|
||||
async_test:
|
||||
sleep_delay_sec: 8
|
||||
sleep_delay_sec: 10
|
||||
async: 20
|
||||
poll: 0
|
||||
register: asyncresult
|
||||
|
|
@ -23,7 +23,7 @@
|
|||
- name: async poll immediate success
|
||||
async_test:
|
||||
sleep_delay_sec: 0
|
||||
async: 20
|
||||
async: 10
|
||||
poll: 1
|
||||
register: asyncresult
|
||||
|
||||
|
|
@ -61,7 +61,7 @@
|
|||
- name: async poll retry
|
||||
async_test:
|
||||
sleep_delay_sec: 5
|
||||
async: 20
|
||||
async: 10
|
||||
poll: 1
|
||||
register: asyncresult
|
||||
|
||||
|
|
@ -97,8 +97,8 @@
|
|||
|
||||
- name: async poll timeout
|
||||
async_test:
|
||||
sleep_delay_sec: 25
|
||||
async: 20
|
||||
sleep_delay_sec: 5
|
||||
async: 3
|
||||
poll: 1
|
||||
register: asyncresult
|
||||
ignore_errors: true
|
||||
|
|
@ -152,7 +152,7 @@
|
|||
|
||||
- name: echo some non ascii characters
|
||||
win_command: cmd.exe /c echo über den Fußgängerübergang gehen
|
||||
async: 20
|
||||
async: 10
|
||||
poll: 1
|
||||
register: nonascii_output
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue