<@ULVA73B9P> can I search in prefect cloud for flo...
# ask-marvin
k
@Marvin can I search in prefect cloud for flow runs using a flow run name e.g. ochre-skua
m
Yes, you can search for flow runs by name in Prefect Cloud. The process involves using Prefect's automation and event filtering capabilities. Here's an outline based on different Prefect versions: 1. Prefect 2.x: You can filter flow runs using automation triggers in Prefect Cloud. Specifically, you can match flow runs based on their name with specific prefixes or patterns. Example configuration:
Copy code
"match": {
       "prefect.resource.id": "prefect.flow-run.*",
       "prefect.resource.name": ["cute-*", "radical-*"]
   },
   "match_related": {}
Source 2. Prefect 3.x: Use event triggers to filter flow run events by name. This can be set up by defining custom triggers in your automation settings. Example from docs:
Copy code
"match": {
       "prefect.resource.id": "prefect.flow-run.*",
       "prefect.resource.name": ["cute-*", "radical-*"]
   },
   "match_related": {}
Source To perform searches or set up these filters effectively, refer to the respective documentation links provided for detailed steps and additional configurations.
Currently, there is no direct built-in method in Prefect Cloud to search for flow runs by their name in the available documentation or issue reports. However, you might be able to achieve this by using Prefect’s API or building custom capabilities through automations and events. For both Prefect 2.x and Prefect 3.x, you can set up event-based triggers to find and filter flow runs by name. While not directly documented as a searchable feature, this suggests a method to identify specific flow runs based on their names: Example configuration (as stated before):
Copy code
"match": {
    "prefect.resource.id": "prefect.flow-run.*",
    "prefect.resource.name": ["ochre-skua"]
},
"match_related": {}
This type of configuration can be part of an automation setup in Prefect Cloud. For programmatic access, consider querying the Prefect API directly for more flexibility. Prefect provides a GraphQL API, and you might write a query to retrieve specific flow runs by their name. For further assistance, it’s best to refer to the Prefect Cloud documentation or reach out to the Prefect community for specific implementation examples. Helpful links: - Prefect 2.x Docs - Prefect 3.x Docs
k
Good answer
nvm, wrong! its in the ui