Hi I need help with my custom automation. I was g...
# prefect-ui
t
Hi I need help with my custom automation. I was given this script to send a notification after 3 late alarms but for some reason it didn't notify us when that occurred can someone tell me a better Automation Custom script for that. Also I'm not entirely sure if my custom trigger was saved since this does not look like the one i originally put ages ago. If i could have some help in creating an Automation that is triggered when a flow is put into 3 Lates
Copy code
{
  "match": {
    "prefect.resource.id": "prefect.flow-run.*"
  },
  "match_related": {},
  "after": [],
  "expect": [
    "prefect.flow-run.Failed"
  ],
  "for_each": [
    "prefect.resource.id"
  ],
  "posture": "Reactive",
  "threshold": 1,
  "within": 0
}
w
Hi Taylor, this automation spec will fire the action when a flow run fails, not when its late. to achieve what you’re trying to you’ll want to change: “prefect.flow-run.Failed” -> “prefect.flow-run.Late” and then the threshold to 3.
t
thank you
I believe that's what i had originally but when i go to edit the automation it disappears is that normal?
w
hmm let me try to reproduce this on my end, just a sec.
yeah I see what you’re seeing, let me file and issue and get this bug patched up.
this will be fixed in the next cloud release, thanks. we release most days, so should be out in the world by eod tomorrow if not some time today. thanks!