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

Add parent_flow_run and parent_deployment information to prefect.runtime #9091

Closed
3 tasks done
WillRaphaelson opened this issue Apr 5, 2023 · 6 comments · Fixed by #10204
Closed
3 tasks done

Add parent_flow_run and parent_deployment information to prefect.runtime #9091

WillRaphaelson opened this issue Apr 5, 2023 · 6 comments · Fixed by #10204
Assignees
Labels
enhancement An improvement of an existing feature

Comments

@WillRaphaelson
Copy link
Contributor

WillRaphaelson commented Apr 5, 2023

First check

  • I added a descriptive title to this issue.
  • I used the GitHub search to find a similar request and didn't find it.
  • I searched the Prefect documentation for this feature.

Prefect Version

2.x

Describe the current behavior

Currently, a flow run runtime contains
id: the flow run's unique ID
tags: the flow run's set of tags
scheduled_start_time: the flow run's expected scheduled start time; defaults to now if not present

Describe the proposed behavior

Runtime will include the parent flow run and parent deployment's information.

Example Use

Users can use prefect.runtime.parent_flow_run.id from within flows

Additional context

No response

@WillRaphaelson WillRaphaelson added enhancement An improvement of an existing feature status:triage labels Apr 5, 2023
@WillRaphaelson WillRaphaelson changed the title Add parent_flow_run information to prefect.runtime Add parent_flow_run and parent_deployment information to prefect.runtime Apr 5, 2023
@sckott
Copy link

sckott commented Apr 5, 2023

👍🏽 Thanks for opening this issue @WillRaphaelson

@sckott
Copy link

sckott commented Jun 29, 2023

Any chance this might happen?

@WillRaphaelson
Copy link
Contributor Author

yes! let me bump up its priority as its been sitting a while, ill follow up next week if it hasnt been picked up. thanks for the ping.

@sckott
Copy link

sckott commented Jun 29, 2023

thanks!

@sckott
Copy link

sckott commented Jul 13, 2023

🎉 thanks for doing this

@sckott
Copy link

sckott commented Jul 13, 2023

@WillRaphaelson great to see this get landed. Now that I can get the parent_deployment_id I need to get the parent deployment name for my slack notification. It doesn't appear that I can execute code in a jinja template, or can I? Seems I would have to be able to run python or other code to get the deployment name from the deployment ID.

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 a pull request may close this issue.

4 participants