add long-running-job-test.yml; tasks/long_running_tasks.yml; and dev testing scripts

This commit is contained in:
Chris Hammer
2022-04-13 13:15:07 -04:00
parent 1285a96b2b
commit 44be415dca
4 changed files with 76 additions and 9 deletions

View File

@ -6,16 +6,19 @@
vars:
time_to_sleep : 300
run_cmd : "find /"
pause_time : 60
num_retries : 1440
poll_interval : 3
check_commands:
- uname -a
- uptime
- ping -c 1 127.0.0.1
tasks:
- name: Simulate a long running job
command : "{{ run_cmd }}"
async : "{{ time_to_sleep + 10 }}" # give +10s leeway
poll : "{{ poll_interval }}"
- name: Include long_running_tasks.yml
include_tasks: tasks/long_running_tasks.yml
...