@ddd-ts-kit/kernel 0.98.0 → 0.99.0
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/README.fr.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
[English](README.md) · **Français**
|
|
2
|
-
<!-- translation-of: README.md sha256:
|
|
2
|
+
<!-- translation-of: README.md sha256:1a8e41caf665b63c -->
|
|
3
3
|
|
|
4
4
|
# @ddd-ts-kit/kernel
|
|
5
5
|
|
|
@@ -1484,7 +1484,9 @@ d'expiration : celui-ci connaît les *jobs*, les planifications et les instances
|
|
|
1484
1484
|
une occurrence et son issue (`succeeded`, `failed` avec le code de l'erreur et jamais son
|
|
1485
1485
|
message, `skipped-overlap`, `skipped-locked`, `missed`). Un *job* qui échoue n'arrête ni le
|
|
1486
1486
|
planificateur ni les autres *jobs*, et `runNow` répond `failed` au lieu de rejeter : seul un nom
|
|
1487
|
-
inconnu rejette (`UnknownJobError`), et un nom enregistré deux fois lève (`DuplicateJobError`).
|
|
1487
|
+
inconnu rejette (`UnknownJobError`), et un nom enregistré deux fois lève (`DuplicateJobError`). Une exécution réussie d'un *job* par *tenant*
|
|
1488
|
+
porte `tenants`, le nombre de *tenants* pour lesquels il a tourné : `0` veut dire que l'annuaire des
|
|
1489
|
+
*tenants* était vide et que le *job* n'a jamais été appelé.
|
|
1488
1490
|
|
|
1489
1491
|
Une exécution se déroule dans `ExecutionScope`, dans le contexte que construit
|
|
1490
1492
|
`executionContextOfJob(name, { correlationId, scheduledAt, deadline?, tenantId? })` : origine
|
package/README.md
CHANGED
|
@@ -1423,7 +1423,8 @@ and instances. A `JobRun` is one occurrence and its outcome (`succeeded`, `faile
|
|
|
1423
1423
|
code of the error and never its message, `skipped-overlap`, `skipped-locked`, `missed`). A job
|
|
1424
1424
|
that fails stops neither the scheduler nor the other jobs, and `runNow` answers `failed`
|
|
1425
1425
|
instead of rejecting: only an unknown name rejects (`UnknownJobError`), and a name registered
|
|
1426
|
-
twice throws (`DuplicateJobError`).
|
|
1426
|
+
twice throws (`DuplicateJobError`). A succeeded run of a per-tenant job carries `tenants`, the
|
|
1427
|
+
number of tenants it ran for: `0` means the tenant directory was empty and the job was never called.
|
|
1427
1428
|
|
|
1428
1429
|
A run happens inside `ExecutionScope`, in the context `executionContextOfJob(name, { correlationId,
|
|
1429
1430
|
scheduledAt, deadline?, tenantId? })` builds: origin `schedule`, `systemActor(name)`, a correlation of its
|
|
@@ -7,6 +7,11 @@ export interface JobRun {
|
|
|
7
7
|
/** Present when the job ran. */
|
|
8
8
|
readonly startedAt?: Date;
|
|
9
9
|
readonly durationMs?: number;
|
|
10
|
+
/**
|
|
11
|
+
* How many tenants a succeeded run of a per-tenant job ran for; 0 when the directory had none,
|
|
12
|
+
* and the job was never called. Absent for a global job.
|
|
13
|
+
*/
|
|
14
|
+
readonly tenants?: number;
|
|
10
15
|
/** The `code` of what the job threw, or `UNEXPECTED_ERROR`. */
|
|
11
16
|
readonly errorCode?: string;
|
|
12
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"job-run.d.ts","sourceRoot":"","sources":["../../../src/application/scheduling/job-run.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,oGAAoG;AACpG,MAAM,WAAW,MAAM;IACrB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,OAAO,EAAE,UAAU,CAAC;IAC7B,QAAQ,CAAC,WAAW,EAAE,IAAI,CAAC;IAC3B,gCAAgC;IAChC,QAAQ,CAAC,SAAS,CAAC,EAAE,IAAI,CAAC;IAC1B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,+DAA+D;IAC/D,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B"}
|
|
1
|
+
{"version":3,"file":"job-run.d.ts","sourceRoot":"","sources":["../../../src/application/scheduling/job-run.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,oGAAoG;AACpG,MAAM,WAAW,MAAM;IACrB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,OAAO,EAAE,UAAU,CAAC;IAC7B,QAAQ,CAAC,WAAW,EAAE,IAAI,CAAC;IAC3B,gCAAgC;IAChC,QAAQ,CAAC,SAAS,CAAC,EAAE,IAAI,CAAC;IAC1B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,+DAA+D;IAC/D,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ddd-ts-kit/kernel",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.99.0",
|
|
4
4
|
"description": "Framework-agnostic Domain-Driven Design (DDD) building blocks for TypeScript: aggregates, entities, value objects, domain events, CQRS command and query buses, unit of work and application ports, with an in-memory event bus.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ddd",
|