Skip to content
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

New trigger type: ConditionalPeriodicTrigger #230

Closed
MadsVSChristensen opened this issue Nov 12, 2021 · 1 comment
Closed

New trigger type: ConditionalPeriodicTrigger #230

MadsVSChristensen opened this issue Nov 12, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@MadsVSChristensen
Copy link

Suggestion of creating a new trigger ConditionalPeriodicTrigger which check if the Task should be triggered on a periodic timer and NOT on a sampling event as ConditionalSamplingEventTrigger.

@bardram
Copy link
Contributor

bardram commented Nov 14, 2021

I've implemented this trigger and released as version 0.31.2.

Note, however, that the ConditionalEvaluator function looks like this

typedef ConditionalEvaluator = bool Function();

Hence, there are no DataPoint (as in the ConditionalEventEvaluator function), since the ConditionalPeriodicTrigger on trigger based on a period (and not a data point event).

I hope it is useful.

@bardram bardram self-assigned this Nov 14, 2021
@bardram bardram added the enhancement New feature or request label Nov 14, 2021
@bardram bardram closed this as completed Nov 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants