Replies: 2 comments 1 reply
-
I believe you already got the solution to it in the other discussion. In terms of multiple dependencies referencing same eventSourceName + eventName, it's actually not allowed in One sensor object, see https://github.com/argoproj/argo-events/blob/master/docs/more-about-sensors-and-triggers.md#duplicate-dependencies for detail. If you are running the latest version of Argo Events, you will see the error message in the Sensor status, the sensor POD will not be created. |
Beta Was this translation helpful? Give feedback.
-
i guess you can create a main template put conditional logic there based json value run diiferent reference template
|
Beta Was this translation helpful? Give feedback.
-
Hello!
I have two WorkflowTemplates (T1, T2) which are supposed to be triggered by a PubSub message. So far - that works. But now I want to trigger T1 xor T2 depending on a value sent with the message. For some reason I just don't get this to work. Here's my EventSource and the Sensor:
If body.test = "a" the first trigger (T1) should be activated, if body.test = "b" the second (T2).
Now, what happens is this:
{"test":"a"}
- only T1 gets triggered - good{"test":"b"}
- nothing gets triggered - bad :/Any ideas?
Thanks in advance
Raffael
Beta Was this translation helpful? Give feedback.
All reactions