feat(pipeline): add retry logic, perClass conversion, and tuneable concurrency - #235
Merged
Conversation
…ncurrency - Add p-retry for transient HTTP errors (502/503/504) in SparqlConstructExecutor - Convert classPropertySubjects/classPropertyObjects to perClass execution, wrapping queries in inner subqueries for injectValues() compatibility - Add VoidStageOptions interface for configurable batchSize/maxConcurrency - Add voidStages() convenience function with cache-warming stage ordering - Update coverage thresholds for new code paths
- Add voidStages() section with cache-warming rationale and options table - Move classPropertySubjects/classPropertyObjects to per-class table - Fix query file link paths (src/queries → queries) - Update uriSpaces parameter name to uriSpaceMap
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.
Summary
Improves pipeline resilience against cold-cache 504 timeouts on external SPARQL endpoints.
SparqlConstructExecutornow retries on 502/503/504 usingp-retry(configurable, default 3 retries)injectValues()VoidStageOptionsinterface exposesbatchSizeandmaxConcurrencyon all VoID stage factory functionsvoidStages()convenience function: returns all stages in recommended order, optimised for cache warming —classPartitions()runs before per-class stages so the?s a ?classpattern is cached. Replaces 16-itemPromise.all()boilerplate in consumersChanges
@lde/pipelinep-retrydependencyretriesoption toSparqlConstructExecutorOptions(default 3)fetchTriples()inpRetry(), only retrying on transient HTTP errors (502/503/504)isTransientHttpError()helper parsing thefetch-sparql-endpointerror format@lde/pipeline-voidVoidStageOptionsandVoidStagesOptionsinterfacesVoidStageOptionsclassPropertySubjects()andclassPropertyObjects()now useselection: 'perClass'?type→?class, added inner subqueries forinjectValues()compatibilityvoidStages()function with cache-warming stage orderingvoidStages()with options table and usage example, move classPropertySubjects/classPropertyObjects to per-class table, fix query file link paths