@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.
@@ -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. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plitzi/sdk-shared",
3
- "version": "0.39.6",
3
+ "version": "0.39.8",
4
4
  "license": "AGPL-3.0",
5
5
  "files": [
6
6
  "dist",