DM-55320: Add a feature to prune unanchored quanta in qgraph building#367
Merged
Conversation
Expose the prune_unanchored_quanta parameter of QuantumGraphBuilder as
a CLI option. Accept a SOURCE:ANCHOR colon-separated pair of task
labels; source quanta with no reachable anchor quantum downstream are
removed along with their entire downstream chain.
This will replace lsst.ap.pipe.prune_orphan_preloads, a script that
patched the quantum graph after build to remove loadDiaCatalogs
quanta with no downstream associateApdb quantum as they have no
template coverage. Example:
pipetask qgraph ...
--prune-unanchored-quanta loadDiaCatalogs:associateApdb
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #367 +/- ##
==========================================
+ Coverage 86.36% 86.41% +0.04%
==========================================
Files 44 44
Lines 2633 2657 +24
Branches 271 273 +2
==========================================
+ Hits 2274 2296 +22
- Misses 256 257 +1
- Partials 103 104 +1 ☔ View full report in Codecov by Harness. |
TallJimbo
approved these changes
Jul 7, 2026
hsinfang
force-pushed
the
tickets/DM-55320
branch
from
July 8, 2026 22:53
5648007 to
f8b3ca8
Compare
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.
Checklist
doc/changes