Fail Fast #512
Unanswered
Ronnie-personal
asked this question in
OPA and Rego
Fail Fast
#512
Replies: 1 comment
-
Heya. First off, there's nothing "parallel" in OPA's evaluation, it's purely done expression-by-expression. In your example package ex
allows if {
var1 == true
var2 == true
}
var1 if ...
var2 if ... a query for |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to understand how does OPA work internally when evaluating a rule with multiple conditions.
Given following OPA example policy, does OPA evaluate 'var1' and 'var2' in parallel?
In case 'var1' already came back with a 'false' result, what will OPA do? Wait for 'var2'?
allowed if {
var1 == true
var2 == true
}
var1 if {
}
var2 if {
}
Thank you for helping with the question!
Beta Was this translation helpful? Give feedback.
All reactions