Repository navigation
fix(reindex): --missing-metadata skips rows attempted in the last 24h - #552
Closed
neuromechanist wants to merge 0 commit into
Closed
neuromechanist wants to merge 0 commit into
neuromechanist wants to merge 0 commit into
Conversation
neuromechanist
force-pushed
the
fix/reindex-missing-metadata-recency
branch
from
May 18, 2026 17:14
d12e28d to
95a8a52
Compare
neuromechanist
force-pushed
the
fix/reindex-missing-metadata-recency
branch
from
May 22, 2026 18:12
95a8a52 to
badd48c
Compare
This was referenced May 22, 2026
neuromechanist
added a commit
that referenced
this pull request
May 22, 2026
…#579) Adds a recency guard to the reindex --missing-metadata filter so datasets whose upstream genuinely lacks required columns (e.g. nm000133 has no participants.tsv → subject_count stays NULL) don't get reindexed every hour with no progress. Default 24h; force-retry via --all. Replaces auto-closed #552. Companion to #553.
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
nemar admin reindex --missing-metadatare-runs the same datasets every sweep with no progress for cases where upstream genuinely lacks a required column. Reported on nm000133: its GitHub repo has noparticipants.tsv, sosubject_countstays NULL forever; the filter re-matches every sweep; the reindex re-runs and produces the same null; the cycle is stable.Affects every dataset whose upstream is missing one of the four required fields. Same observation on on005262 (no participants.tsv).
Fix
Add a 24h recency guard so a row attempted within the last day isn't re-queued:
Default lookback = 1 day. Operator can override with
--older-than 0to force immediate retry or--allto bypass.Tests
Existing missing-metadata test extended to assert the new params binding + the recency predicate. Two new tests pin the override behavior and negative-recency rejection. 21/21 pass.