attlaz-client 1.50.1 → 1.51.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/dist/Model/Infrastructure/RunnerPool.d.ts +8 -5
- package/dist/Model/Infrastructure/RunnerPool.js +16 -11
- package/dist/Model/InfrastructureStatus/QueueStatus.d.ts +1 -1
- package/dist/Model/InfrastructureStatus/QueueStatus.js +1 -1
- package/dist/Model/InfrastructureStatus/RunnersStatus.d.ts +1 -1
- package/dist/Model/InfrastructureStatus/RunnersStatus.js +1 -1
- package/package.json +1 -1
|
@@ -6,12 +6,15 @@ export declare class RunnerPool {
|
|
|
6
6
|
queueIdentifier: string;
|
|
7
7
|
deploymentIdentifier: string;
|
|
8
8
|
type: QueueSpecificationType;
|
|
9
|
-
|
|
10
|
-
effectiveMaxRunners: number | null;
|
|
11
|
-
effectiveCpuLimit: number | null;
|
|
12
|
-
effectiveMemoryLimit: number | null;
|
|
13
|
-
effectiveImageId: string | null;
|
|
9
|
+
configuration: RunnerPoolConfiguration;
|
|
14
10
|
state: State;
|
|
15
11
|
static parse(raw: any): RunnerPool;
|
|
16
12
|
}
|
|
17
13
|
export type QueueSpecificationType = 'flow_run';
|
|
14
|
+
export interface RunnerPoolConfiguration {
|
|
15
|
+
minRunners: number | null;
|
|
16
|
+
maxRunners: number | null;
|
|
17
|
+
cpuLimit: number | null;
|
|
18
|
+
memoryLimit: number | null;
|
|
19
|
+
imageId: string | null;
|
|
20
|
+
}
|
|
@@ -6,12 +6,14 @@ export class RunnerPool {
|
|
|
6
6
|
queueIdentifier;
|
|
7
7
|
deploymentIdentifier;
|
|
8
8
|
type = 'flow_run';
|
|
9
|
-
//
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
// Resolved server-side via the configuration chain (pool → env → workspace → zone fallback). null = unset anywhere in the chain.
|
|
10
|
+
configuration = {
|
|
11
|
+
minRunners: null,
|
|
12
|
+
maxRunners: null,
|
|
13
|
+
cpuLimit: null,
|
|
14
|
+
memoryLimit: null,
|
|
15
|
+
imageId: null,
|
|
16
|
+
};
|
|
15
17
|
state = State.Active;
|
|
16
18
|
static parse(raw) {
|
|
17
19
|
const queueSpecification = new RunnerPool();
|
|
@@ -21,11 +23,14 @@ export class RunnerPool {
|
|
|
21
23
|
queueSpecification.queueIdentifier = raw.queue_identifier;
|
|
22
24
|
queueSpecification.deploymentIdentifier = raw.deployment_identifier;
|
|
23
25
|
queueSpecification.type = raw.type;
|
|
24
|
-
|
|
25
|
-
queueSpecification.
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
const rawConfiguration = raw.configuration ?? {};
|
|
27
|
+
queueSpecification.configuration = {
|
|
28
|
+
minRunners: rawConfiguration.min_runners ?? null,
|
|
29
|
+
maxRunners: rawConfiguration.max_runners ?? null,
|
|
30
|
+
cpuLimit: rawConfiguration.cpu_limit ?? null,
|
|
31
|
+
memoryLimit: rawConfiguration.memory_limit ?? null,
|
|
32
|
+
imageId: rawConfiguration.image_id ?? null,
|
|
33
|
+
};
|
|
29
34
|
queueSpecification.state = State.fromString(raw.state);
|
|
30
35
|
return queueSpecification;
|
|
31
36
|
}
|