Document native inventory repair job
This commit is contained in:
1 parent
d11e32bcb0
commit
ca80092906
1 file changed
+19
@@ -301,6 +301,25 @@ The worker inventories application tables directly from provider metadata, quote
|
||||
|
||||
OpenGenesisLINK 0.9.3.5 deliberately does not expose arbitrary SQL, `VACUUM`, `VACUUM FULL`, `OPTIMIZE TABLE`, schema migration, repair or rebuild operations through this API. Those operations can require stronger maintenance-window and backup/rollback guarantees and remain separate operational work.
|
||||
|
||||
## Persistent Job Engine: Inventory repair
|
||||
|
||||
OpenGenesisLINK 0.9.3.5 provides a conservative structural repair job for one resident inventory.
|
||||
|
||||
`POST /api/v1/jobs/inventory/repair` accepts:
|
||||
|
||||
```json
|
||||
{
|
||||
"owner_id": "00000000-0000-0000-0000-000000000000",
|
||||
"dry_run": true
|
||||
}
|
||||
```
|
||||
|
||||
Starting this endpoint requires `admin:*`. The job type is `inventory.repair`; `dry_run` defaults to `true`. The worker reads the authoritative `IInventoryService` inventory root and folder skeleton, detects missing parent references, self-parenting folders and parent cycles, and reports the required repairs through normal Job Engine progress/log/result metadata.
|
||||
|
||||
A real repair only reattaches structurally invalid folders to the resident's authoritative inventory root. It does not delete folders or items, purge Trash, rewrite assets, or access the inventory database directly. Repairs are bounded to 1000 actions per job and are revalidated after mutation. Cancellation is cooperative between individual folder moves; a partially cancelled job leaves already-moved folders in valid root-attached locations.
|
||||
|
||||
This first repair worker deliberately does not attempt low-level recovery of database rows that are invisible through `IInventoryService`. Such recovery requires a separately specified datastore-maintenance contract so that MySQL/MariaDB, PostgreSQL and SQLite behavior remains explicit and testable.
|
||||
|
||||
Configuration:
|
||||
|
||||
```ini
|
||||
|
||||
Reference in new issue
Block a user