acoustic-carpenter-78188
03/24/2023, 8:17 PMnoop task to skip the branch. This will lead to waste of time during execution.
For example:
@task
def noop():
...
conditional("generate_artifact")
.if_(need_to_generate.is_true())
.then(generate_artifact())
.else_(noop())
This makes the code ugly and UI messy. We will need to figure out a way to cleanly handle this.
Goal: What should the final outcome look like, ideally?
Ideally, we can introduce something like`end()` or skip() operation in conditional to skip the branch, similar to fail() operation here: https://github.com/flyteorg/flytekit/blob/master/flytekit/core/condition.py#L295
Describe alternatives you've considered
noop() task with cache is being used right now. it is bad coding practice and confusing in the UI.
Propose: Link/Inline OR Additional context
No response
Are you sure this issue hasn't been raised already?
☑︎ Yes
Have you read the Code of Conduct?
☑︎ Yes
flyteorg/flyte