From 13b4e6333cdc64bc67a1237313e38ef79d0609f2 Mon Sep 17 00:00:00 2001 From: Andrew Rumble Date: Thu, 6 Mar 2025 09:17:56 +0000 Subject: [PATCH] Merge pull request #23874 from overleaf/ar-use-gcp-pre-emptible-signal [clsi] Use GCP pre-emptible metadata instead of hostname GitOrigin-RevId: 2df305e68f2999c9d3bde051dbb533025478800f --- services/clsi/config/settings.defaults.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/services/clsi/config/settings.defaults.js b/services/clsi/config/settings.defaults.js index e32815ae44..0f4111dc62 100644 --- a/services/clsi/config/settings.defaults.js +++ b/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',