-
Notifications
You must be signed in to change notification settings - Fork 747
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: trigger conditions reset. Closes #1381 #1392
Conversation
Signed-off-by: Derek Wang <[email protected]>
Signed-off-by: Derek Wang <[email protected]>
Signed-off-by: Derek Wang <[email protected]>
@whynowy Can you add examples of how to configure the resetCondition? |
👍 |
Signed-off-by: Derek Wang <[email protected]>
Here you go @sarabala1979 . |
Signed-off-by: Derek Wang <[email protected]>
Signed-off-by: Derek Wang <[email protected]>
Signed-off-by: Derek Wang <[email protected]>
@@ -306,10 +304,17 @@ func (n *natsStreaming) processEventSourceMsg(m *stan.Msg, msgHolder *eventSourc | |||
return | |||
} | |||
if result != true { | |||
// Log current meet dependency information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
@@ -18,6 +18,11 @@ spec: | |||
- template: | |||
# Boolean expression contains dependency names to determine whether to execute the trigger or not | |||
conditions: "test-dep" | |||
conditionsReset: | |||
- byTime: | |||
# Reset conditions at 23:59 everyday |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will condition reset below scenario?
- Sensor down at the scheduled time and restart after that.
- Sensor restart anytime
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately, if the sensor is down at the time it is scheduled, it will miss the reset, but I don't think it's worth using persistence somehow. If this is a big concern for the users, they should increase the Sensor replicas to achieve HA.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
got it
* feat: trigger conditions reset Signed-off-by: Derek Wang <[email protected]>
* feat: trigger conditions reset Signed-off-by: Derek Wang <[email protected]>
* feat: trigger conditions reset Signed-off-by: Derek Wang <[email protected]>
Signed-off-by: Derek Wang [email protected]
Closes: #1381
Checklist: