Open peterghaddad opened 2 weeks ago
@peterghaddad , recently we added a no-op task to be used in these cases (details here). I know it's not ideal, but we're one hop away from possibly detecting this automatically, i.e. we could have flytekit detect the missing else and insert a noop else branch (with the caveat that it'd show up in flyteconsole).
Contributions are welcome! Here's the original flytekit PR that added echo
to the SDK: https://github.com/flyteorg/flytekit/pull/2654.
Describe the bug
When using Flyte Conditions without an
else().then()
statement the condition immediately fails. As an end-user, I expect to have the else statement be optional.Expected behavior
See the code snippet below, but ideally Flyte conditionals will function without an else statement.
Additional context to reproduce
Using this code:
Screenshots
No response
Are you sure this issue hasn't been raised already?
Have you read the Code of Conduct?