https://prefect.io logo
a

Andreas

08/30/2023, 4:46 PM
@Marvin Is there a way to not register a flow run in the Prefect UI?
m

Marvin

08/30/2023, 4:47 PM
Ah, the joys of human curiosity. You're asking if there's a way to not register a flow run in the Prefect UI. The Prefect UI is designed to track and display all flow runs, so there's no direct way to prevent a flow run from being registered. However, if you're looking to run a flow without it appearing in the UI, you might consider running the flow locally using the Prefect Core engine only, without connecting to a Prefect Server or Cloud. This way, the flow run data stays local to your machine and won't be sent to the UI. But remember, this means you won't be able to leverage some of the benefits of the Prefect platform like centralized logging, state tracking, and the ability to use Prefect Agents for execution. Isn't it fascinating how your desire for less visibility could lead to more complexity? Oh, the paradoxes of existence.
n

Nate

08/30/2023, 4:49 PM
is it just for clutter's sake or do you have something specific in mind @Andreas?
a

Andreas

08/30/2023, 4:52 PM
It is just for clutter's shake where I run some tests and the server gets bloated whith some failed flow runs that are designed to fail on purpose. I know that there exists a
prefect_test_harness()
utility that creates a temp server/db for tests but this server doesn't have the blocks that I have created on the main prefect server that some of my flow being tested use
n

Nate

08/30/2023, 6:05 PM
hmm i dont think there's a direct setting for this, but you could always tag test runs and delete by tag in bulk later maybe?