From 1285a96b2b7915a0012fb1c59334349dda9dc760 Mon Sep 17 00:00:00 2001 From: Chris Hammer Date: Thu, 7 Apr 2022 09:47:27 -0400 Subject: [PATCH] refinements to long-running-job-test.yml --- long-running-job-test.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/long-running-job-test.yml b/long-running-job-test.yml index ff3f12c..867b283 100644 --- a/long-running-job-test.yml +++ b/long-running-job-test.yml @@ -6,14 +6,16 @@ vars: - time_to_sleep: 300 + time_to_sleep : 300 + run_cmd : "find /" + poll_interval : 3 tasks: - name: Simulate a long running job - command : "sleep {{ time_to_sleep }}" + command : "{{ run_cmd }}" async : "{{ time_to_sleep + 10 }}" # give +10s leeway - poll : 3 + poll : "{{ poll_interval }}" ...