[dev][taskflow] Accepting any decision
Hi, I wrote the code in the attachment and I would like to ask if it's possible to execute next task (step3) even if one decider returns True (link from step 1 to step 3) and one returns False (link from step 2 to step 3). If it is possible could someone alter the code? Or is there any other way to do it? And if the task wouldn't have to wait for all of the links, it would be great. Thank you! All the best, Rája
Hi Raja, You can have a decider that goes down one of two paths and then continues with common tasks. See the Octavia code starting at Line 228 to Line 289 here: https://github.com/openstack/octavia/blob/master/octavia/controller/worker/v... We "decide" if we can use a pre-booted VM and if not, we boot one. Then once we have a VM by either path, we finish configuring it. Michael On Fri, Sep 27, 2019 at 6:49 AM Jiří Rája <jiri.raja@gmail.com> wrote:
Hi, I wrote the code in the attachment and I would like to ask if it's possible to execute next task (step3) even if one decider returns True (link from step 1 to step 3) and one returns False (link from step 2 to step 3). If it is possible could someone alter the code? Or is there any other way to do it? And if the task wouldn't have to wait for all of the links, it would be great. Thank you!
All the best, Rája
participants (2)
-
Jiří Rája
-
Michael Johnson