Remove autoscaling action cooldown
This commit is contained in:
@@ -7,10 +7,10 @@ export interface ScalingSettings {
|
||||
/** '*' applies the targets independently to every map. */
|
||||
mapSlug: string;
|
||||
mode: AutoscalingMode;
|
||||
minimum: number; maximum: number; spares: number; emptyMinutes: number; cooldownMinutes: number;
|
||||
minimum: number; maximum: number; spares: number; emptyMinutes: number;
|
||||
}
|
||||
export interface ScalingPolicy extends ScalingSettings {
|
||||
id: string; revision: number; nextActionAt: number; pausedReason: string | null; updatedAt: string;
|
||||
id: string; revision: number; pausedReason: string | null; updatedAt: string;
|
||||
}
|
||||
export interface ScalingMember {
|
||||
name: string; mapSlug?: string; identity: string; state: 'occupied' | 'empty' | 'creating' | 'removing' | 'stopped' | 'unknown' | 'protected';
|
||||
@@ -52,5 +52,5 @@ export function scalingSettings(input: unknown): ScalingSettings {
|
||||
const minimum = integer('minimum', 1, 20), maximum = integer('maximum', undefined, 20), spares = integer('spares', 1, 20);
|
||||
if (minimum > maximum || spares > maximum) throw new Error('Minimum and spare target cannot exceed the maximum.');
|
||||
return { game, mapSlug, mode: mode as AutoscalingMode, minimum, maximum, spares,
|
||||
emptyMinutes: integer('emptyMinutes', 20, 1440), cooldownMinutes: integer('cooldownMinutes', 5, 1440) };
|
||||
emptyMinutes: integer('emptyMinutes', 20, 1440) };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user