Michael Schwartz
08/01/2025, 12:13 AM"related": [
{
"prefect.resource.id": "prefect.flow-run.0688af9e-c977-7c29-8000-f511157a6ec4",
"prefect.resource.role": "flow-run",
"prefect.resource.name": "space-chihuahua"
},
{
"prefect.resource.id": "prefect.task-run.284448f7-f33a-4711-b54c-2938921288ad",
"prefect.resource.role": "task-run",
"prefect.resource.name": "bigeye_integrity_checks_and_publish-ccd"
},
{
"prefect.resource.id": "prefect.flow.5cf8010e-076a-40e3-9e73-a96a2e25a752",
"prefect.resource.role": "flow",
"prefect.resource.name": "build-prod"
}
]
and one that is only one
"related": [
{
"prefect.resource.id": "prefect-cloud.webhook.283c8f61-321f-4336-99a8-b679b2206dbf",
"prefect.resource.name": "Upsert Catsy Products",
"prefect.resource.role": "webhook"
}
]
Marvin
08/01/2025, 12:13 AMMarvin
08/01/2025, 12:16 AMprefect-cloud.webhook.*
instead of prefect.*
)
This simpler structure is typical for webhook events, which are standalone triggers that don't necessarily have the same parent-child relationships that flows and tasks do.
The "related" array in these events helps establish the context and relationships between different Prefect resources. Each resource in the array has:
- An ID (prefect.resource.id
)
- A role (prefect.resource.role
)
- A name (prefect.resource.name
)
This structure allows Prefect to maintain traceability and relationships between different components of your workflows, whether they're complex flow executions with multiple components or simple webhook triggers.
Would you like me to dive deeper into any particular aspect of these event structures or how they're used in Prefect?Michael Schwartz
08/01/2025, 12:44 AM