apigee / henchman

Orchestration and Automation tool
BSD 2-Clause "Simplified" License
109 stars 19 forks source link

Henchman considers the task as failed when condition doesn't match, and does retry.. #120

Closed baskaran-md closed 8 years ago

baskaran-md commented 8 years ago
  - name: Install latest version of {{ vars.component }} RPM
    shell: cmd="yum install -y {{ vars.component }}"
    debug: true
    retry: 2
    when: vars.version == "latest"

Here, when the condition doesn't match, Henchman retries it for the given number of times. It should retry only when the task is executed and failed.

baskaran-md commented 8 years ago

The console log looks confusing..

jlin21 commented 8 years ago

@baskaran-md for the console log do you mean the task output to screen? Is it scrambled and out of order when there are more than one hosts running?

jlin21 commented 8 years ago

The latest build fixes this retry issue. If the when condition is false, it will not retry now.