Bug summary
I am following this guide to detect zombie flows: https://docs.prefect.io/v3/advanced/detect-zombie-flows
This works as intended, but there is a problem: it expects state NAMES, which means that a flow finishing in a state of type COMPLETED but with a custom name will be considered a zombie flow. As far as I know (I have asked Marvin about it) it is not possible to expect a state type. Is this case? I believe it should be possible to work with state types in event triggers and automations (I think you can match state types but not expect them).
Version info
Version: 3.6.12
API version: 0.8.4
Python version: 3.12.12
Git commit: eb710303
Built: Tue, Jan 20, 2026 06:20 PM
OS/Arch: darwin/arm64
Profile: latitudo40
Server type: server
Pydantic version: 2.12.5
Server:
Database: sqlite
SQLite version: 3.50.4
Integrations:
prefect-aws: 0.7.4
Additional context
No response
Bug summary
I am following this guide to detect zombie flows: https://docs.prefect.io/v3/advanced/detect-zombie-flows
This works as intended, but there is a problem: it expects state NAMES, which means that a flow finishing in a state of type COMPLETED but with a custom name will be considered a zombie flow. As far as I know (I have asked Marvin about it) it is not possible to expect a state type. Is this case? I believe it should be possible to work with state types in event triggers and automations (I think you can match state types but not expect them).
Version info
Additional context
No response