question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow setting a custom flow run name

See original GitHub issue

Opened from the Prefect Public Slack Community

andreas.ntonas: Hi! In Prefect 2.0, when creating a flow_run for a deployment using https://orion-docs.prefect.io/api-ref/prefect/client/#prefect.client.OrionClient.create_flow_run_from_deployment|API’s prefect.client.create_flow_run_from_deployment() is it possible to set the name for the flow_run? I know that there is such an option when calling create_flow_run(name="My flow run name") that takes as input a flow_model, what about when creating a run from a deployment though?

anna: In theory, it is possible but we currently don’t expose any functionality to do that. Let me open an issue to check if we can expose that

<@ULVA73B9P> open “Allow setting custom flow run name when creating a flow run from a deployment”

Original thread can be found here.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:5
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
kevin868commented, Oct 8, 2022

@abrookins I added the docs in #7109, since it wasn’t addressed in PR #7084 Hope it didn’t duplicate work you’ve started already. Cheers!

3reactions
abrookinscommented, Oct 5, 2022

We’re assessing these different use cases, but while we do, I’ll note that if you create a flow run from a deployment using create_flow_run_from_deployment(), if you pass a value for the name argument, we will use that to set a custom flow run name. I see that we should update the docstring on the method to make that clear, so we’ll get on that!

@anna-geller I’ve reached out to the user who originally asked this question in Slack to make sure they know about the parameter.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Set name for flow run and (mapped) task runs
Let me open an issue to check if we can expose that <@ULVA73B9P> open "Allow setting custom flow run name when creating a...
Read more >
How to Use Custom Settings in Salesforce Flows
In this article, we'll dig into how to set up Custom Settings, they work with Salesforce Flows, starting with Hierarchical Custom Settings.
Read more >
Flow Screen Input Component: Name - Salesforce Help
To customize which fields to display at run time, set this attribute to a comma-separated list of the field names. For First Name,...
Read more >
Create user flows and custom policies - Azure Active Directory ...
Select Run user flow, and then sign in with the account that you previously created. You now have the opportunity to change the...
Read more >
How do I get the name of a flow from within a task in Prefect?
You can get the flow run name and ID from the context: ... Here are more resources on Prefect Discourse about setting custom...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found