소스 검색

Merge pull request #23874 from overleaf/ar-use-gcp-pre-emptible-signal

[clsi] Use GCP pre-emptible metadata instead of hostname

GitOrigin-RevId: 2df305e68f2999c9d3bde051dbb533025478800f
Andrew Rumble 1 년 전
부모
커밋
13b4e6333c
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      services/clsi/config/settings.defaults.js

+ 1 - 2
services/clsi/config/settings.defaults.js

@@ -1,11 +1,10 @@
 const Path = require('node:path')
-const os = require('node:os')
 const http = require('node:http')
 const https = require('node:https')
 
 http.globalAgent.keepAlive = false
 https.globalAgent.keepAlive = false
-const isPreEmptible = os.hostname().includes('pre-emp')
+const isPreEmptible = process.env.PREEMPTIBLE === 'TRUE'
 
 module.exports = {
   compileSizeLimit: process.env.COMPILE_SIZE_LIMIT || '7mb',