feat: create Jobnik ingestion job and stages (MAPCO-11590) - #11
Open
lirantul123 wants to merge 2 commits into
Open
lirantul123 wants to merge 2 commits into
lirantul123 wants to merge 2 commits into
Conversation
|
🎫 Related Jira Issue: MAPCO-11590 |
lirantul123
force-pushed
the
jobnik-job
branch
from
September 29, 2026 14:37
e277265 to
7b1c00f
Compare
Add JobnikClient wrapping the @map-colonies/jobnik-sdk Producer. - Ingestion: create 3D-Ingestion job + validation stage/task (+ data-extraction stage/task only for 3tz input). - Delete: validate deletability (record exists, productType not QuantizedMeshDTMBest, productStatus UNPUBLISHED) then create a 3D-Delete job. RecordManager ingest/delete now return real Jobnik jobs. Add externalServices.jobManager config (schema, default, custom-environment-variables, helm). Unit + integration tests.
Add ValidationManager check that rejects an ingestion when an in-flight Jobnik ingestion job already exists for the same productName, complementing the catalog unique-name check (which only sees finished records). JobnikClient.hasInFlightIngestionJob queries GET /v1/jobs by job name and filters client-side on non-terminal status + data.metadata.productName, paginating through all pages. Query failures raise AppError. JobnikClient is now a singleton so RecordManager and ValidationManager share one SDK instance instead of double-registering its metrics. Interim until Jobnik ships native duplicate support (epic MAPCO-11833).
lirantul123
force-pushed
the
jobnik-job
branch
from
September 29, 2026 15:40
7b1c00f to
104fb38
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.
Add JobnikClient wrapping the @map-colonies/jobnik-sdk Producer. On ingestion it creates the 3D-Ingestion job, a validation stage+task, and (only for 3tz input) a data-extraction stage+task. RecordManager.createIngestion now returns the real Jobnik job instead of a stub. Add externalServices.jobManager to config (schema, default, custom-environment-variables, helm). Unit test (SDK mocked) + wired into manager/integration tests.