attlaz-client 1.50.1 → 1.52.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 +13 -5
- package/dist/Model/Infrastructure/RunnerPool.js +17 -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/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -6,12 +6,20 @@ 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 type ConfigurationSource = 'RunnerPool' | 'ProjectEnvironment' | 'Workspace' | 'Zone';
|
|
15
|
+
export interface ResolvedValue<T> {
|
|
16
|
+
value: T;
|
|
17
|
+
source: ConfigurationSource | null;
|
|
18
|
+
}
|
|
19
|
+
export interface RunnerPoolConfiguration {
|
|
20
|
+
minRunners: ResolvedValue<number>;
|
|
21
|
+
maxRunners: ResolvedValue<number>;
|
|
22
|
+
cpuLimit: ResolvedValue<number | null>;
|
|
23
|
+
memoryLimit: ResolvedValue<number | null>;
|
|
24
|
+
imageId: ResolvedValue<string | null>;
|
|
25
|
+
}
|
|
@@ -6,12 +6,16 @@ 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).
|
|
10
|
+
// Each field reports the resolved value plus the scope it came from. source === null means
|
|
11
|
+
// the value is a baked-in default (nothing was found anywhere in the chain).
|
|
12
|
+
configuration = {
|
|
13
|
+
minRunners: { value: 0, source: null },
|
|
14
|
+
maxRunners: { value: 0, source: null },
|
|
15
|
+
cpuLimit: { value: null, source: null },
|
|
16
|
+
memoryLimit: { value: null, source: null },
|
|
17
|
+
imageId: { value: null, source: null },
|
|
18
|
+
};
|
|
15
19
|
state = State.Active;
|
|
16
20
|
static parse(raw) {
|
|
17
21
|
const queueSpecification = new RunnerPool();
|
|
@@ -21,11 +25,13 @@ export class RunnerPool {
|
|
|
21
25
|
queueSpecification.queueIdentifier = raw.queue_identifier;
|
|
22
26
|
queueSpecification.deploymentIdentifier = raw.deployment_identifier;
|
|
23
27
|
queueSpecification.type = raw.type;
|
|
24
|
-
queueSpecification.
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
queueSpecification.configuration = {
|
|
29
|
+
minRunners: raw.configuration.min_runners,
|
|
30
|
+
maxRunners: raw.configuration.max_runners,
|
|
31
|
+
cpuLimit: raw.configuration.cpu_limit,
|
|
32
|
+
memoryLimit: raw.configuration.memory_limit,
|
|
33
|
+
imageId: raw.configuration.image_id,
|
|
34
|
+
};
|
|
29
35
|
queueSpecification.state = State.fromString(raw.state);
|
|
30
36
|
return queueSpecification;
|
|
31
37
|
}
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.51.0";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "1.
|
|
1
|
+
export const VERSION = "1.51.0";
|