@@ -47,10 +47,7 @@ export class GameServerNodeService {
4747 this . batchApi = kc . makeApiClient ( BatchV1Api ) ;
4848 }
4949
50- public static GET_UPDATE_JOB_NAME (
51- gameServerNodeId : string ,
52- game = "cs2" ,
53- ) {
50+ public static GET_UPDATE_JOB_NAME ( gameServerNodeId : string , game = "cs2" ) {
5451 const sanitized = gameServerNodeId . replaceAll ( "." , "-" ) ;
5552 return game === "csgo"
5653 ? `update-csgo-server-${ sanitized } `
@@ -131,6 +128,7 @@ export class GameServerNodeService {
131128 lanIP : string ,
132129 publicIP : string ,
133130 csBulid : number ,
131+ csgoBuildId : number ,
134132 supportsCpuPinning : boolean ,
135133 supportsLowLatency : boolean ,
136134 cpuInfo : {
@@ -161,6 +159,7 @@ export class GameServerNodeService {
161159 lan_ip : true ,
162160 node_ip : true ,
163161 build_id : true ,
162+ csgo_build_id : true ,
164163 public_ip : true ,
165164 gpu : true ,
166165 cpu_sockets : true ,
@@ -178,7 +177,6 @@ export class GameServerNodeService {
178177 this . logger . log ( `Creating volumes for node ${ node } ` ) ;
179178 await this . createVolumes ( node ) ;
180179 }
181-
182180 if ( game_server_nodes_by_pk ?. status === "NotAcceptingNewMatches" ) {
183181 status = "NotAcceptingNewMatches" ;
184182 }
@@ -198,6 +196,8 @@ export class GameServerNodeService {
198196 game_server_nodes_by_pk . status !== status ||
199197 ( game_server_nodes_by_pk . build_id !== csBulid &&
200198 game_server_nodes_by_pk . update_status === null ) ||
199+ ( game_server_nodes_by_pk . csgo_build_id !== csgoBuildId &&
200+ game_server_nodes_by_pk . update_status === null ) ||
201201 game_server_nodes_by_pk . supports_cpu_pinning !== supportsCpuPinning ||
202202 game_server_nodes_by_pk . supports_low_latency !== supportsLowLatency ||
203203 game_server_nodes_by_pk . gpu !== nvidiaGPU ||
@@ -228,6 +228,9 @@ export class GameServerNodeService {
228228 ...( game_server_nodes_by_pk . update_status === null
229229 ? { build_id : csBulid }
230230 : { } ) ,
231+ ...( game_server_nodes_by_pk . update_status === null
232+ ? { csgo_build_id : csgoBuildId }
233+ : { } ) ,
231234 gpu : nvidiaGPU ,
232235 cpu_sockets : cpuInfo . sockets ,
233236 cpu_cores_per_socket : cpuInfo . coresPerSocket ,
@@ -680,7 +683,6 @@ export class GameServerNodeService {
680683 } ,
681684 _set : {
682685 update_status : null ,
683- ...( game === "csgo" ? { csgo_build_id : 1 } : { } ) ,
684686 } ,
685687 } ,
686688 update_status : true ,
0 commit comments