Skip to content

Commit

Permalink
Reduce poll interval from 1 minute to 1 second
Browse files Browse the repository at this point in the history
  • Loading branch information
agrare committed Jul 30, 2018
1 parent 43d43d8 commit 37acbdd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/manageiq/providers/ansible_runner_workflow.rb
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 37acbdd

Please sign in to comment.