Fix join examples and text

The 'join' example for using a number did not have a proper workflow.
It looks like it was copied from the 'all' example and not completely
changed. Also, disambiguate the wording of the description for that
example. It used the word 'once' in a place where it looked as though
it meant 'one time' instead of 'as soon as'.

Change-Id: I9b89768c0f0b7d325db08ea9345965a9263a64c8
Closes-Bug: #1761827
This commit is contained in:
Brad P. Crochet 2018-04-06 14:13:48 -04:00
parent 54fe5b0109
commit 7657458e61
1 changed files with 4 additions and 4 deletions

View File

@ -769,24 +769,24 @@ Partial Join (join: 2)
register_vm_in_load_balancer:
 ...
 on-success:
   - wait_for_all_registrations
   - wait_for_two_registrations
register_vm_in_dns:
 ...
 on-success:
   - wait_for_all_registrations
   - wait_for_two_registrations
register_vm_in_zabbix:
  ...
  on-success:
    - wait_for_all_registrations
    - wait_for_two_registrations
wait_for_two_registrations:
  join: 2
  action: send_email
When a task has property "join" assigned with a numeric value then the task
will run once at least this number of upstream tasks are completed and
will run when at least this number of upstream tasks are completed and
corresponding conditions have triggered. In the example above task
"wait_for_two_registrations" will run if two any of
"register_vm_xxx" tasks complete.