pass through checkpoint setting (#34631)

GitOrigin-RevId: 50e9791b468253ee966b0eac822b2a01321a0ece
This commit is contained in:
Brian Gough
2026-06-16 08:07:14 +00:00
committed by Copybot
parent be4108a573
commit 6f9b7031f4
2 changed files with 10 additions and 0 deletions
+5
View File
@@ -192,6 +192,11 @@ async function doCompile(request, stats, timings) {
}
}
// Pass through checkpoint setting
if (request.enableCheckpoint) {
env.ENABLE_CHECKPOINT = '1'
}
const compileStart = Date.now()
const compileName = getCompileName(request.project_id, request.user_id)
+5
View File
@@ -65,6 +65,11 @@ function parse(body, callback) {
type: 'number',
}
)
response.enableCheckpoint = _parseAttribute(
'enableCheckpoint',
compile.options.enableCheckpoint,
{ default: false, type: 'boolean' }
)
response.timeout = _parseAttribute('timeout', compile.options.timeout, {
default: MAX_TIMEOUT,
type: 'number',