Hello again! How can I return a list of a pipeline...
# announcements
r
Hello again! How can I return a list of a pipeline's failed runs?
This is the way I'm trying it.
Copy code
filters = PipelineRunsFilter(status="FAILURE")
filtered_runs = instance.get_runs(filters)
d
Hi Rodrigo - I think you want PipelineRunStatus.FAILURE (from dagster.core.storage.pipeline_run) rather than "FAILURE" and what you have should work. There's also a pipeline_name parameter if you'd like the failed runs for a specific pipeline
r
Thanks a lot @daniel!