Hi there, I'm debugging one of my tasks and would ...
# flyte-support
g
Hi there, I'm debugging one of my tasks and would like to use the outputs of a remote task. I'm following the snippet in the dashboard of the task that I want:
Copy code
from flytekit.remote.remote import FlyteRemote
from flytekit.configuration import Config
remote = FlyteRemote(
    Config.for_endpoint("<http://my.endpoint.com|my.endpoint.com>"),
)
remote.get("<flyte://url-to-my-flyte-output>")
Redacted the urls. When I run this, I get a
<class 'flytekit.core.type_engine.LiteralsResolver'>
, how do I get the underlying data?
g
do you have the task definition in your code? if so, you can do
Copy code
out = remote.get("<flyte://url-to-my-flyte-output>")
print(out.as_python_native(<your-task>.python_interface))
if not, you can do
Copy code
print(out.get("o0")
g
Thanks for the fast reply. Going to give it a try!