Hello prefect team! I’m playing with custom event ...
# ask-community
a
Hello prefect team! I’m playing with custom event automation on 3.2.11 but can’t seems to get it to trigger 😢 , here’s my automation trigger json
Copy code
{
  "type": "event",
  "match": {},
  "match_related": {},
  "after": [
    "some.event.completed"
  ],
  "expect": [
    "some.event.completed"
  ],
  "for_each": [],
  "posture": "Reactive",
  "threshold": 1,
  "within": 3600
}
And here’s an event I sent and confirmed the engine received, does anyone know why won’t this event trigger the automation?
k
change
after
to
[]
the
after
field means that event needs to be seen first before the trigger evaluates any other events
a
thanks Kevin trying!
Yup that patched it! Kevin do you know if there’s a toogle on the
form
view? I can only see this and if I save a new one line this it seems to auto populate the
after
field on the json
k
the part that says "Evaluate trigger only after observing an event matching" should control what's in
after
not sure why that's getting added
is this on prefect cloud or an open source server?
a
open source
k
ah, yeah. I can't reproduce on cloud
if you can consistently reproduce that behavior on open source, would you mind opening a github issue?
a
sure thing Kevin
k
thanks!