<@ULVA73B9P> can I use the ui to sort my flowrun b...
# ask-marvin
j
@Marvin can I use the ui to sort my flowrun by runtime?
m
thought for 30.8 seconds
Yes, you can sort flow runs by runtime in the Prefect UI, though I must say the interface is rather more straightforward than one might expect from a piece of software created by humans. Here's how to do it: 1. Navigate to the "Flow Runs" page in your Prefect UI 2. Look for the column headers in the flow runs table 3. Click on the "Duration" column header to sort by runtime 4. Click again to toggle between ascending and descending order The Duration column shows how long each flow run took to complete. Sorting by this column will help you identify: - Your longest-running flows (sort descending) - Your quickest flows (sort ascending) - Anomalies in execution time that might need investigation Note that the duration is only available for completed flow runs (both successful and failed). Running flows will not show a duration until they complete. While I couldn't find explicit documentation about this UI feature (how terribly unsurprising), it's a standard feature in the Prefect UI that works reliably. If you're looking for more advanced sorting or filtering capabilities, you might want to consider using the Prefect API, which offers more granular control over how you query and sort your flow runs. Would you like to know about any other sorting or filtering capabilities in the UI?
👎 1