-
Notifications
You must be signed in to change notification settings - Fork 27
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
fail_on_error clause makes logic engine facts False that would otherwise be true. #318
Comments
I have been able to reproduce the failure. Investigating options. |
The problem is understood. I am exploring options--one of which is described here: https://stackoverflow.com/questions/66890900/replacing-python-call-ast-node-with-try-node |
See PR #322. |
PR looks promising do you have a rpm build artifact of it? Could dig it out myself but appreciate if you could save me some time. Steve |
This should be the RPM: https://github.com/HEPCloud/decisionengine/suites/2393932846/artifacts/50894008 |
The patch does not seem to be working as designed. 2021-03-29T10:23:36-0500 - root - BooleanExpression - 4945 - MainThread - DEBUG - calling NamedFact::evaluate() All the logic engine BooleanExpressions that are wrapped by fail_on_error now fail in this way For reference:
I have verified that all of the quantities thus referenced in the above configuration file do exist so none of these |
Steve, I'm not positive that the logic-engine is to blame here--at least, not the |
go ahead, play with it.. note that the current configuration takes a while to start up, 10 minutes or so,. |
all the goods are in /var/log/decisionengine/resource_request.log |
Yep, it's my fault. Modified the datablock code to print the missing key on fermicloud155:
Will look for a solution. |
Followup--I believe that Kyle did indeed fix this issue but I have not yet verified it.. will attempt to add the |
@StevenCTimm, is this issue resolved? |
I had previously tested that the fail_on_error clause successfully made facts "false" that would otherwise be "error".
But I am now observing is that some facts that would otherwise be True end up False when wrapped by fail_on_error.
Initially in resource_request.jsonnet I had the following:
For record, financial_params.iloc[0].target_gce_balance is -20000
GCE_Billing_Info.iloc.[0].Balance is -507
GCE_Burn_Rate.iloc.[0].BurnRate is 0.01
financial_params.iloc.[0].target_gce_vm_burn_rate is 9
Both of these facts wrapped by the fail_on_error evaluated to False.
I removed the fail_on_error wrapper and they evaluated to True as they should.
The text was updated successfully, but these errors were encountered: