We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c53621 commit ded8d9dCopy full SHA for ded8d9d
aperag/tasks/reconciler.py
@@ -409,11 +409,12 @@ def reconcile_all(self):
409
def _get_summaries_needing_reconciliation(self, session: Session) -> List[CollectionSummary]:
410
"""
411
Get all collection summaries that need reconciliation
412
+ Only select summaries with PENDING status and version mismatch
413
414
stmt = select(CollectionSummary).where(
- or_(
415
+ and_(
416
CollectionSummary.version != CollectionSummary.observed_version,
- CollectionSummary.status != CollectionSummaryStatus.GENERATING,
417
+ CollectionSummary.status == CollectionSummaryStatus.PENDING,
418
)
419
420
result = session.execute(stmt)
0 commit comments