<#3265 [BUG] [flytekit] FlyteRemote fetch executio...
# flyte-github
a
#3265 [BUG] [flytekit] FlyteRemote fetch execution with gate node Issue created by wild-endeavor Describe the bug
Copy code
from flytekit.remote.remote import FlyteRemote
from flytekit.configuration import Config
r = FlyteRemote(
    Config.auto(config_file="/Users/ytong/.flyte/dev.yaml"),
    default_project="flytesnacks",
    default_domain="development",
)
execution_id = "asfv42v66gsxm5hljfg8"
ex = r.fetch_execution(name=execution_id)
Sync'ing nodes returns this error
Copy code
In [5]: r.sync_execution(ex, sync_nodes=True)
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-5-cc8f74e15715> in <cell line: 1>()
----> 1 r.sync_execution(ex, sync_nodes=True)

~/go/src/github.com/flyteorg/flytekit/flytekit/remote/remote.py in sync_execution(self, execution, entity_definition, sync_nodes)
   1478             node_execs = {}
   1479             for n in underlying_node_executions:
-> 1480                 node_execs[n.id.node_id] = self.sync_node_execution(n, node_mapping)  # noqa
   1481             execution._node_executions = node_execs
   1482         return self._assign_inputs_and_outputs(execution, execution_data, node_interface)

~/go/src/github.com/flyteorg/flytekit/flytekit/remote/remote.py in sync_node_execution(self, execution, node_mapping)
   1620                 for t in iterate_task_executions(self.client, execution.id)
   1621             ]
-> 1622             execution._interface = execution._node.flyte_entity.interface
   1623
   1624         self._assign_inputs_and_outputs(

AttributeError: 'FlyteGateNode' object has no attribute 'interface'
Expected behavior should not error. 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/flyte