cuddly-jelly-27016
05/26/2025, 12:10 AM'Output' object has no attribute 'ref'
The internal code where this is thrown is:
flytekit/core/promise.py:850 in __rshift__
│ │
│ 847 │ │ return self._ref │
│ 848 │ │
│ 849 │ def __rshift__(self, other: Union[Promise, VoidPromise]): │
│ ❱ 850 │ │ if self.ref and other.ref: │
│ 851 │ │ │ self.ref.node.runs_before(other.ref.node) │
│ 852 │ │ return other
I think the issue is that this class Output:
https://github.com/flyteorg/flytekit/blob/master/flytekit/core/promise.py#L697-L716
doesnt have implemented the ref, so when you try to use the >> operator using remoteEntity which are wrapped in the Output class you will hit this error.
If I check the type of my remoteEntity it is <class 'flytekit.core.promise.create_task_output.<locals>.Output'>
a >> remoteEntity(this is an Output class) > b
This is a workaround:
a >> remoteEntity.<some_field>.node > b
This is related to: #5393
### Expected behavior
Be able to chaining remoteEntities
### Additional context to reproduce
No response
### Screenshots
No response
### Are you sure this issue hasn't been raised already?
• Yes
### Have you read the Code of Conduct?
• Yes
flyteorg/flytecuddly-jelly-27016
05/26/2025, 12:10 AM