@plitzi/sdk-shared 0.39.6 → 0.39.8
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/CHANGELOG.md +14 -0
- package/dist/store/storeHooks.d.ts +33 -33
- package/dist/types/JobTypes.d.ts +7 -1
- package/package.json +1 -1
package/dist/types/JobTypes.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ActionAccess, ActionTriggerType } from './ActionTypes';
|
|
1
|
+
import { ActionAccess, ActionRunLimit, ActionTriggerType } from './ActionTypes';
|
|
2
2
|
import { Environment } from './CommonTypes';
|
|
3
3
|
import { SpaceRevision } from './ServerAdapterTypes';
|
|
4
4
|
import { RunUser } from './ServerTypes';
|
|
@@ -104,6 +104,12 @@ export type JobAttempt = {
|
|
|
104
104
|
error?: string;
|
|
105
105
|
/** The error is the code's own refusal (`ActionRefusal`), written for whoever asked — what a job's watcher may read. */
|
|
106
106
|
refused?: true;
|
|
107
|
+
/**
|
|
108
|
+
* The limit the attempt was stopped at, when it was one (`memory`, `cpu`, `calls`…): what tells a job set aside
|
|
109
|
+
* because its code needs more than its plan gives it — which a schedule waits on rather than firing into again —
|
|
110
|
+
* from one set aside for anything else.
|
|
111
|
+
*/
|
|
112
|
+
limit?: ActionRunLimit;
|
|
107
113
|
/** What the worker that held it may hold, in MiB, when it said. */
|
|
108
114
|
memoryMb?: number;
|
|
109
115
|
/** That worker said it neared its memory while it held the job: a `lost` one then needs a larger worker. */
|