From 37acbddf91662291fb3da0d3d5598c14593485fb Mon Sep 17 00:00:00 2001 From: Adam Grare Date: Mon, 30 Jul 2018 15:25:52 -0400 Subject: [PATCH] Reduce poll interval from 1 minute to 1 second --- app/models/manageiq/providers/ansible_runner_workflow.rb | 2 +- spec/models/manageiq/providers/ansible_runner_workflow_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/manageiq/providers/ansible_runner_workflow.rb b/app/models/manageiq/providers/ansible_runner_workflow.rb index 60f6368720b..f5ddf6ab84e 100644 --- a/app/models/manageiq/providers/ansible_runner_workflow.rb +++ b/app/models/manageiq/providers/ansible_runner_workflow.rb @@ -1,5 +1,5 @@ class ManageIQ::Providers::AnsibleRunnerWorkflow < Job - def self.create_job(env_vars, extra_vars, playbook_path, timeout: 1.hour, poll_interval: 1.minute) + def self.create_job(env_vars, extra_vars, playbook_path, timeout: 1.hour, poll_interval: 1.second) options = { :env_vars => env_vars, :extra_vars => extra_vars, diff --git a/spec/models/manageiq/providers/ansible_runner_workflow_spec.rb b/spec/models/manageiq/providers/ansible_runner_workflow_spec.rb index 41686976bd8..3fa0860bf32 100644 --- a/spec/models/manageiq/providers/ansible_runner_workflow_spec.rb +++ b/spec/models/manageiq/providers/ansible_runner_workflow_spec.rb @@ -133,7 +133,7 @@ now = Time.now.utc allow(Time).to receive(:now).and_return(now) expect(response_async).to receive(:running?).and_return(true) - expect(job).to receive(:queue_signal).with(:poll_runner, :deliver_on => now + 1.minute) + expect(job).to receive(:queue_signal).with(:poll_runner, :deliver_on => now + 1.second) job.signal(:poll_runner) end