Skip to content

feat!: concurrency refactor, postprocessors reorganisation, and v7 packaging slices#15

Merged
rpanfili merged 63 commits intomainfrom
concurrency_refactor
Mar 23, 2026
Merged

feat!: concurrency refactor, postprocessors reorganisation, and v7 packaging slices#15
rpanfili merged 63 commits intomainfrom
concurrency_refactor

Conversation

@rpanfili
Copy link
Contributor

@rpanfili rpanfili commented Mar 19, 2026

Concurrency (breaking)

  • morph_kgc moved to a subprocess pool for true parallelism (bypasses pyparsing lock and GIL)
  • SHACL validation runs in a dedicated process pool; ingestion and postprocessors offloaded to thread pools
  • runner.pyoneshot.py, worker.pypersistent.py; SubprocessPostprocessor split into OneshotPostprocessor and PersistentPostprocessor

Postprocessors reorganisation

  • Extracted into postprocessors/ subpackage (processors/, PostprocessorService, PostprocessorResult)
  • ProfileImportProtocol decomposed into focused _init_* helpers; PostprocessorService decoupled from the protocol class

SHACL validation

  • ShaclValidationService introduced. Validates graphs via a reusable PreparedShaclValidator worker, wired into ProfileImportProtocol
  • load_shapes_graph / normalize_schema_org_uris made public in shacl module

v7 packaging slices

  • Lazy-export guards now point to modules with real third-party deps so ModuleNotFoundError fires correctly when an extra is absent
  • get_me / reset_me renamed to _get_me / _reset_me to prevent submodule name shadowing
  • Slice test tooling added (run_slice_tests.py, run_slice_smoke_imports.py)

rpanfili added 30 commits March 20, 2026 14:43
rpanfili added 24 commits March 20, 2026 14:43
@rpanfili rpanfili force-pushed the concurrency_refactor branch from 323f243 to 2c14ab6 Compare March 20, 2026 16:40
@rpanfili rpanfili changed the title Concurrency refactor feat!: concurrency refactor, postprocessors reorganisation, and v7 packaging slices Mar 20, 2026
@rpanfili rpanfili marked this pull request as ready for review March 20, 2026 17:09
@rpanfili rpanfili merged commit fed0485 into main Mar 23, 2026
11 checks passed
@rpanfili rpanfili deleted the concurrency_refactor branch March 23, 2026 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant