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

Merged
merged 1 commit into from
Dec 3, 2024
Merged

expose job_variables in runtime.flow_run #16124

merged 1 commit into from
Dec 3, 2024

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 (055cfa2) with main (b52c2c9)

Summary

✅ 3 untouched benchmarks

@zzstoatzz zzstoatzz merged commit f1649e9 into main Dec 3, 2024
36 checks passed
@zzstoatzz zzstoatzz deleted the runtime-jobvars branch December 3, 2024 02:36
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