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

Conditional Alerts #2150

Open
jirhiker opened this issue Feb 28, 2022 · 2 comments
Open

Conditional Alerts #2150

jirhiker opened this issue Feb 28, 2022 · 2 comments
Assignees

Comments

@jirhiker
Copy link
Member

add AlertConditional

same as most other run conditionals, but it only triggers an AlertEvent

Other plugins, e.g. EmailPlugin, should add handlers for the AlertEvent. When event fired email plugin will send alert as an email. the AlertEvent context contains the subject, body and recipients

@jirhiker jirhiker self-assigned this Feb 28, 2022
@jirhiker
Copy link
Member Author

Currently the conditionals are stateless. they only now about the current state. So evaluating conditionals such as "cancel if last n Ar40 blanks > X" is not possible.

Any alert conditional might be "last n ages < 0"
some mechanism for evaluating such conditionals is required

@jirhiker
Copy link
Member Author

I started a StatefullConditional. It currently is non functional. more work is needed to incorporate with experiment.

State can be loaded and dumped. But the state is currently not defined and is just None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant