Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expose ui/api urls in prefect.runtime.task_run #16879

Merged
merged 1 commit into from
Jan 29, 2025
Merged

Conversation

zzstoatzz
Copy link
Collaborator

example use

from prefect import task
import prefect.runtime
import webbrowser

@task
def open_ui():
    webbrowser.open_new_tab(prefect.runtime.task_run.ui_url)

open_ui()

@zzstoatzz zzstoatzz force-pushed the task-run-runtime-urls branch from 5d6d201 to 67bf7c0 Compare January 28, 2025 20:15
Copy link

codspeed-hq bot commented Jan 28, 2025

CodSpeed Performance Report

Merging #16879 will not alter performance

Comparing task-run-runtime-urls (67bf7c0) with main (10d2c75)

Summary

✅ 2 untouched benchmarks

@zzstoatzz zzstoatzz added the enhancement An improvement of an existing feature label Jan 28, 2025
src/prefect/runtime/task_run.py Show resolved Hide resolved
@zzstoatzz zzstoatzz merged commit 33d4169 into main Jan 29, 2025
48 checks passed
@zzstoatzz zzstoatzz deleted the task-run-runtime-urls branch January 29, 2025 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An improvement of an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants