Hi guys. We have Prefect Server 3.4.6 running in o...
# ask-community
t
Hi guys. We have Prefect Server 3.4.6 running in our Kubernetes cluster and it has its own Postgres + Worker. Using helm chart from here. Now there is one issue. We have two Deployments. Both of them work when started manually. We are trying to set up a trigger. We want Deployment B to start when any Flow Run from Deployment A reaches "Completed" state and also allow for multiple triggers. We created a custom composite trigger like this:
Copy code
{
  "type": "compound",
  "triggers": [
    {
      "type": "event",
      "match": {},
      "match_related": {
        "prefect.resource.id": "prefect.deployment.<deployment A's id>"
      },
      "after": [],
      "expect": [
        "prefect.flow-run.Completed"
      ],
      "for_each": [],
      "posture": "Reactive",
      "threshold": 1,
      "within": 0
    }
  ],
  "require": "any",
  "within": 0
}
And then in "Action" we picked "Run a Deployment" and selected Deployment B, also providing parameters. However, when a Flow Run from Deployment A is Completed, nothing happens. Is there something wrong about our trigger condition? Not sure what we are doing wrong. The ID provided is 100% correct. Is it possible that the automation state is cached for a while when enabled / disabled? Because it was working before so maybe someone switched it off / on and it is still cached? Idk Thanks for any help