AkashB08/22/2019, 6:04 AM
Jeremiah08/23/2019, 4:20 AM
AkashB08/23/2019, 5:02 AM
Jeremiah08/23/2019, 5:04 AM
AkashB08/23/2019, 5:17 AM
Jeremiah08/24/2019, 2:26 PM
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?)
Chris White08/24/2019, 6:29 PM
AkashB08/26/2019, 4:09 AM
. But when using
, it's giving me error. I even tried
. It's also giving the same error.
Chris White08/26/2019, 2:21 PM
AkashB08/27/2019, 4:06 AM
Chris White08/27/2019, 4:09 AM
AkashB08/27/2019, 11:22 AM