flows/executor: call plan.next before pop so we can save plan

ReevaluateMarker: use PolicyEngine without cache
This commit is contained in:
Jens Langhammer
2020-06-18 22:54:09 +02:00
parent 6a4086c490
commit dab53cfd03
2 changed files with 5 additions and 0 deletions

View File

@ -36,6 +36,7 @@ class ReevaluateMarker(StageMarker):
def process(self, plan: "FlowPlan", stage: Stage) -> Optional[Stage]:
"""Re-evaluate policies bound to stage, and if they fail, remove from plan"""
engine = PolicyEngine(self.binding, self.user)
engine.use_cache = False
engine.request.context = plan.context
engine.build()
result = engine.result