mikser-io 11.10.1 → 11.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/diagnostics.md +6 -0
- package/package.json +1 -1
- package/src/journal.js +27 -1
package/docs/diagnostics.md
CHANGED
|
@@ -1039,6 +1039,12 @@ distinction is the whole of [Faults](#faults) above.
|
|
|
1039
1039
|
| `preset-no-match` | warn | A configured preset matched none of the entities evaluated this run. Phrased as what was observed: an incremental cycle legitimately evaluates a handful. |
|
|
1040
1040
|
| `preset-unknown` | warn | `--render-presets` named a preset that is not configured. |
|
|
1041
1041
|
|
|
1042
|
+
### Extraction (`mikser-io-ocr`)
|
|
1043
|
+
|
|
1044
|
+
| Code | Severity | Means |
|
|
1045
|
+
| --- | --- | --- |
|
|
1046
|
+
| `ocr-schema-changed` | notice | A step's schema changed, so stored answers no longer match it by hash. Says how many documents are in the pass and which fields are being asked for. Answers that still satisfy the new schema are reused without a model call; the rest are asked only for the fields they are missing. |
|
|
1047
|
+
|
|
1042
1048
|
### Configuration and stores
|
|
1043
1049
|
|
|
1044
1050
|
| Code | Severity | Means |
|
package/package.json
CHANGED
package/src/journal.js
CHANGED
|
@@ -336,5 +336,31 @@ onFinalized(async () => {
|
|
|
336
336
|
})
|
|
337
337
|
|
|
338
338
|
onCancelled(async () => {
|
|
339
|
-
|
|
339
|
+
// NOT cleared. A cancelled cycle's entries are not superseded work —
|
|
340
|
+
// "this entity was created and nothing has processed it" is still true
|
|
341
|
+
// after the restart, and the restarted cycle will not re-journal it: the
|
|
342
|
+
// source gate compares checksums, finds the file unchanged, and emits
|
|
343
|
+
// nothing. So deleting these rows orphaned the entity permanently. It sat
|
|
344
|
+
// in the catalog with empty meta, no output, and no journal entry any
|
|
345
|
+
// future cycle would look at, under a green "Mikser completed" — and
|
|
346
|
+
// touching the file was the only way to get it back.
|
|
347
|
+
//
|
|
348
|
+
// Reported against a 4 MB PDF uploaded over WebDAV: the upload landed
|
|
349
|
+
// mid-cycle, the restart deleted the CREATE entry, and the page was never
|
|
350
|
+
// produced. Nothing about it was specific to the plugin that noticed —
|
|
351
|
+
// any consumer doing real work between a journal read and its write-back
|
|
352
|
+
// had the same hole.
|
|
353
|
+
//
|
|
354
|
+
// The asymmetry was the tell: a CRASH leaves these rows and `--resume`
|
|
355
|
+
// continues from them (see the leftover bootstrap above), while a restart
|
|
356
|
+
// deliberately deleted them. Keeping them makes a restart behave like the
|
|
357
|
+
// case the engine already handles.
|
|
358
|
+
//
|
|
359
|
+
// They are cleared by onFinalized when a cycle actually completes, so a
|
|
360
|
+
// run of cancellations carries its backlog forward and the first cycle to
|
|
361
|
+
// finish clears the lot.
|
|
362
|
+
const carried = stmtCount.get().n
|
|
363
|
+
if (carried > 0) {
|
|
364
|
+
useLogger()?.debug('Restart: carrying %d unprocessed journal entries into the next cycle', carried)
|
|
365
|
+
}
|
|
340
366
|
})
|