mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-12 21:23:45 +01:00
pass through checkpoint setting (#34631)
GitOrigin-RevId: 50e9791b468253ee966b0eac822b2a01321a0ece
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user