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 job_variables in runtime.flow_run #16124

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

zzstoatzz
Copy link
Collaborator

@zzstoatzz zzstoatzz commented Nov 26, 2024

In [1]: from prefect import flow

In [2]: import prefect.runtime

In [3]: @flow(log_prints=True)
   ...: def f(): print(prefect.runtime.flow_run.job_variables)

In [4]: f()
17:55:23.174 | INFO    | prefect.engine - Created flow run 'true-panda' for flow 'f'
17:55:23.423 | INFO    | Flow run 'true-panda' - {}
17:55:23.548 | INFO    | Flow run 'true-panda' - Finished in state Completed()

@zzstoatzz zzstoatzz added the enhancement An improvement of an existing feature label Nov 26, 2024
Copy link

codspeed-hq bot commented Nov 27, 2024

CodSpeed Performance Report

Merging #16124 will not alter performance

Comparing runtime-jobvars (b7b663d) with main (3da0f05)

Summary

✅ 3 untouched benchmarks

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.

1 participant