Explorar el Código

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 hace 1 año
padre
commit
13b4e6333c
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  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',