-
Couldn't load subscription status.
- Fork 20
Stop formula engine #1165
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
Stop formula engine #1165
Conversation
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.
LGTM but the description about the close issue should be removed from the OR description so it doesn't go to the merge commit and it needs release notes as the formula engine is public.
23953ad to
0040a42
Compare
|
One more error described in PR message |
a35dcfb to
57e01f1
Compare
|
Last commit is very complicated, sorry for that! |
To be able to stop custom formulas outside sdk. Signed-off-by: Elzbieta Kotulska <[email protected]>
Replace exception with debug message to avoid confusing traceback output. Previously, FormulaEngine couldn't be stopped, so exception was acceptable. Now that FormulaEngine can be stopped, use severity level 'debug' since stopping is a normal operation and usefull only during debugging. Signed-off-by: Elzbieta Kotulska <[email protected]>
133d022 to
0ff71bf
Compare
c4a88a1 to
e37c7e8
Compare
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.
I'll leave the changes in formula engine to @shsms as he is more familiar with that code base.
Also simplify failure log message Signed-off-by: Elzbieta Kotulska <[email protected]>
Also allow `None` values for it. Signed-off-by: Elzbieta Kotulska <[email protected]>
When the primary stream has invalid data, then look at the fallback stream. This approach doesn't assume that once a fallback is started, it is always running. In a subsequent commit, we will implement stopping of fallback fetchers when the primary has recovered. Signed-off-by: Elzbieta Kotulska <[email protected]>
Signed-off-by: Elzbieta Kotulska <[email protected]>
Signed-off-by: Elzbieta Kotulska <[email protected]>
And use it to stop the fallback fetcher when it is no longer needed. Signed-off-by: Elzbieta Kotulska <[email protected]>
If it happens because the fetcher is being stopped, then only log a DEBUG message. Signed-off-by: Elzbieta Kotulska <[email protected]>
Signed-off-by: Elzbieta Kotulska <[email protected]>
Signed-off-by: Elzbieta Kotulska <[email protected]>
It looks like ReceiverError[Any] is not ReceiverError, but some type object. When any error occured we got missleading error about the exception not inheriting from BaseException. Signed-off-by: Elzbieta Kotulska <[email protected]>
eccc664 to
f21b112
Compare
|
Thanks @shsms for separating these commits. Is much more readable now! :) |
This PR introduces 4 new changes:
stopmethod publicAll this simplified the code a lot.