acoustic-carpenter-78188
07/17/2026, 3:08 AMflyte.remote.Run.get_report(), which returns the HTML report associated with a run as a string. This is a SDK-only change.
The flow is:
1. Send a CreateDownloadLink request to the data proxy (artifact_type=ARTIFACT_TYPE_REPORT, keyed by the run's action_attempt_id) to obtain a signed URL.
2. Download the report from that signed URL and return its contents as an HTML string.
By default it resolves the latest attempt (via action.details()), but an explicit attempt and a custom expires_in can be passed. It raises if no report artifact is available for the run.
Changes
• src/flyte/remote/_run.py — new Run.get_report(attempt=None, expires_in=1h) -> str method.
• src/flyte/remote/_client/_protocols.py — add create_download_link to the DataProxyService protocol.
• src/flyte/remote/_client/controlplane.py — implement create_download_link on the cluster-aware proxy, routing by action for action_attempt_id, by project for task_id, and via the default client otherwise.
• examples/remote_management/get_report.py — example that runs a report=True task, waits, pulls the report, and writes it to a local report.html.
• Tests: tests/flyte/remote/test_get_report.py (download flow, latest/explicit attempt, no-report error) and two new cases in tests/flyte/remote/test_cluster_aware_dataproxy.py (routing by action_attempt_id and task_id).
Testing
• mypy src/ clean; ruff clean; the 21 relevant unit tests pass.
• Ran the example end-to-end against `demo.hosted.unionai.cloud`: the run succeeded and the report HTML (containing the expected content) was downloaded and written locally.
🤖 Generated with Claude Code
flyteorg/flyte-sdkacoustic-carpenter-78188
07/19/2026, 1:48 AM