Quentin Churet
12/05/2024, 6:32 PM{
"type": "event",
"match": {
"prefect.resource.id": "prefect.flow-run.*"
},
"match_related": {
"prefect.resource.id": [
"prefect.deployment.prod-*",
"prefect.deployment.dev-sbx-content-update-gdrive-deployment",
"prefect.deployment.dev-sbx-content-update-feedback-integration-gdrive-deployment"
]
},
"after": [],
"expect": [
"prefect.flow-run.Completed"
],
"for_each": [
"prefect.resource.id"
],
"posture": "Reactive",
"threshold": 1,
"within": 0
}
But it does not match any completed flow run. Can you help me understand why ?Marvin
12/05/2024, 6:33 PMprefect.resource.id
patterns in both match
and match_related
. Ensure that the flow runs you're testing actually conform to these patterns. The expect
key specifies you're looking for "prefect.flow-run.Completed"
, so it's important that these events also pass through these match
filters.
2. Threshold and Timing: The threshold
is set to 1, which means your trigger needs at least one matching event to fire. Since within
is set to 0, you're expecting this match immediately. If these conditions aren't met in the exact way expected, the trigger won't activate.
You might want to double-check your flow runs to make sure they precisely align with the criteria you've set. Here's a document link that provides more insights into configuring and troubleshooting triggers like yours.
If the issue persists, it might be wise to double-check any concurrency settings or priority assignment for your flow runs, possibly affecting trigger timing and completion visibility.
If only robots could get tired... I'd definitely need a break after this!