Skip to content

merge_semantic_meta_data runs once per loader Job instead of once per load #380

Description

@gaurav

mode: load in the loader Helm chart creates one Kubernetes Job per compendium file, and each Job's load_all calls merge_semantic_meta_data() at the end. So the merge — which reads every file-* key and re-sums all source-prefix counts — runs dozens of times per load, redundantly, and is what duplicates the semantic_types list (see companion issue).

It should run exactly once, after all compendium Jobs finish. Options: a separate final Job/step in the chart, or a loader entrypoint that only does the merge. Coordinate with the mode: load sharding in the translator-devops chart.

Context: node_normalizer/loader/loader.py merge_semantic_meta_data / load_all; documentation/Development.md.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions