pychron icon indicating copy to clipboard operation
pychron copied to clipboard

Conditional Alerts

Open jirhiker opened this issue 4 years ago • 2 comments

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 avatar Feb 28 '22 15:02 jirhiker

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 avatar Feb 28 '22 15:02 jirhiker

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

jirhiker avatar Sep 13 '22 17:09 jirhiker