Chain dependencies between multiple promises #2955
Labels
enhancement
New feature or request
untriaged
This issues has not yet been looked at by the Maintainers
Motivation: Why do you think this is important?
Right now to chain tasks which returns
None
within a workflow you can do that in multiple ways. One of the ways is with>>
, though when doing it you can only chain 2 promises like:promise1 >> promise2
, but you can not chain more promises like:promise1 >> promise2 >> promise3
then i get this error:TypeError: unsupported operand type(s) for >>: 'NoneType' and 'VoidPromise'
.Goal: What should the final outcome look like, ideally?
It would be good if you can use this syntax in order to chain multiple (more than 2) promises like this:
Also this should be possible:
Describe alternatives you've considered
This is just an improvement of existing functionality.
Propose: Link/Inline OR Additional context
I didn't spend yo much time looking into how it should be fixed, but i guess it would be here: https://github.com/flyteorg/flytekit/blob/0bd3261c7567b0e25fa4cac88c883279b8752447/flytekit/core/promise.py#L350 where the function
__rshift__
needs to return other promiseAre you sure this issue hasn't been raised already?
Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: