Skip to content

Commit

Permalink
Skip evaluation of post-conditions during eligibility if known to be …
Browse files Browse the repository at this point in the history
…incomplete.
  • Loading branch information
bdice committed Jan 6, 2021
1 parent 08ca73f commit e0abac5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions flow/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -2475,9 +2475,13 @@ def compute_conditions(aggregate_id, aggregate, group, scheduler_status):
error_text = None
try:
status["scheduler_status"] = scheduler_status
status["completed"] = group._complete(aggregate)
completed = group._complete(aggregate)
status["completed"] = completed
eligible_ignore_conditions = (
IgnoreConditions.NONE if completed else IgnoreConditions.POST
)
status["eligible"] = not status["completed"] and group._eligible(
aggregate
aggregate, ignore_conditions=eligible_ignore_conditions
)
except Exception as error:
logger.debug(
Expand Down

0 comments on commit e0abac5

Please sign in to comment.