{ "schema_version": 3, "diagram_type": "lifecycle", "meta": { "title": "ThothII — sincronizzazione schema del Metadata Catalog", "locale": "it", "output": "docs/architecture/thothii-catalog-sync.html", "quality_profile": "showcase", "repository": {"url": "https://git.tylconsulting.it/mptyl/ThothII.git", "link_mode": "local-only", "revision": "31e6d3a162e9e5ac71fc2d8da4fe44b16c06aae3"} }, "mainPath": ["queued", "running", "applying", "succeeded"], "states": [ { "id": "queued", "type": "start", "label": "queued", "sublabel": "un run attivo per database", "step": "01", "sources": [ { "path": "backend/src/catalog/migrations/003_catalog_schema_sync.ts", "line": 102, "end_line": 104, "label": "indice un solo attivo" } ] }, { "id": "running", "type": "active", "label": "running", "sublabel": "scan DWH + piano delle modifiche", "step": "02", "sources": [ { "path": "backend/src/catalog/sync-worker.ts", "line": 175, "end_line": 175, "label": "claimSyncRun" }, { "path": "backend/src/catalog/sync-worker.ts", "line": 210, "end_line": 220, "label": "scan + plan" } ] }, { "id": "applying", "type": "active", "label": "applying", "sublabel": "modifiche in una transazione", "tag": "non cancellabile", "step": "03", "sources": [ { "path": "backend/src/catalog/sync-worker.ts", "line": 243, "end_line": 250, "label": "applySchemaSync" } ] }, { "id": "succeeded", "type": "success", "label": "succeeded", "sublabel": "catalogo aggiornato", "step": "04", "sources": [ { "path": "backend/src/catalog/sync-worker.ts", "line": 300, "end_line": 300 } ] }, { "id": "awaiting", "type": "waiting", "label": "awaiting_confirmation", "sublabel": "cancellazioni da confermare", "tag": "admin", "sources": [ { "path": "backend/src/catalog/sync-worker.ts", "line": 222, "end_line": 240, "label": "diff distruttivo" }, { "path": "backend/src/catalog/sync-worker.ts", "line": 96, "end_line": 112, "label": "confirm" } ] }, { "id": "cancelled", "type": "neutral", "label": "cancelled", "sublabel": "annullato dall'utente", "sources": [ { "path": "backend/src/catalog/sync-worker.ts", "line": 114, "end_line": 136, "label": "cancel" } ] }, { "id": "failed", "type": "failure", "label": "failed", "sublabel": "errore o timeout", "sources": [ { "path": "backend/src/catalog/sync-worker.ts", "line": 260, "end_line": 272 } ] }, { "id": "interrupted", "type": "failure", "label": "interrupted", "sublabel": "riavvio del servizio", "sources": [ { "path": "backend/src/catalog/repository.ts", "line": 1896, "end_line": 1896, "label": "interruptActiveSyncRuns" } ] } ], "transitions": [ { "id": "q-r", "from": "queued", "to": "running", "label": "claim" }, { "id": "r-a", "from": "running", "to": "applying", "label": "piano pronto" }, { "id": "a-s", "from": "applying", "to": "succeeded", "label": "commit", "variant": "emphasis" }, { "id": "r-w", "from": "running", "to": "awaiting", "label": "diff distruttivo", "variant": "security" }, { "id": "w-q", "from": "awaiting", "to": "queued", "label": "confirm" }, { "id": "w-c", "from": "awaiting", "to": "cancelled", "label": "cancel" }, { "id": "q-c", "from": "queued", "to": "cancelled", "label": "cancel" }, { "id": "r-f", "from": "running", "to": "failed", "label": "errore", "variant": "security" }, { "id": "r-i", "from": "running", "to": "interrupted", "label": "restart", "variant": "dashed" } ], "cards": [ { "dot": "amber", "title": "Conferma", "items": [ "Se il piano rimuove tabelle, colonne o relazioni il run si ferma e chiede conferma", "La conferma vale solo per lo stesso snapshot: se il DWH cambia, si richiede di nuovo" ] }, { "dot": "cyan", "title": "Altri run", "items": [ "I run di generazione descrizioni seguono stati analoghi: queued, running, completed, completed_with_errors, cancelled, failed, interrupted", "Un run terminato può essere rilanciato con retry" ] } ] }