AkashB08/22/2019, 6:04 AM
AkashB08/23/2019, 5:02 AM
AkashB08/23/2019, 5:17 AM
that can help you take different paths through the workflow or generate dynamic tasks.
in an imperative flow — we should document this in a FAQ. Because functions like
generate intermediate tasks, I’d actually recommend switching to the functional API just for that one call. Something like:
you could introspect ifelse, rebuild it yourself, and capture all the intermediate tasks, but this will accomplish the same thing. You can switch between functional and imperative APIs at any time.
# ... imperative flow building flow.add_task(condition) # switch to functional for ifelse with flow: result = ifelse(condition, <true>, <false>) # back to imperative flow.add_task(...)
so it could be used in the imperative API without modification. (cc @Chris White for opinion?)
AkashB08/26/2019, 4:09 AM
. But when using
, it's giving me error. I even tried
. It's also giving the same error.
AkashB08/27/2019, 4:06 AM
AkashB08/27/2019, 11:22 AM