فهرست منبع

Merge pull request #28946 from overleaf/bg-set-health-check-flag-on-compile-status-requests

set health-check flag on compile status requests

GitOrigin-RevId: 56decc98aecf7fa5e12f99efc39ef38915ceebe2
Brian Gough 1 سال پیش
والد
کامیت
7b6565c98f
2فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 1 0
      services/web/app/src/Features/Compile/ClsiManager.mjs
  2. 1 1
      services/web/app/src/router.mjs

+ 1 - 0
services/web/app/src/Features/Compile/ClsiManager.mjs

@@ -880,6 +880,7 @@ function _finaliseRequest(projectId, options, project, docs, files) {
         pdfCachingMinChunkSize: options.pdfCachingMinChunkSize,
         pdfCachingMinChunkSize: options.pdfCachingMinChunkSize,
         flags,
         flags,
         metricsMethod: options.compileGroup,
         metricsMethod: options.compileGroup,
+        metricsPath: options.metricsPath,
       },
       },
       rootResourcePath,
       rootResourcePath,
       resources,
       resources,

+ 1 - 1
services/web/app/src/router.mjs

@@ -1159,7 +1159,7 @@ async function initialize(webRouter, privateApiRouter, publicApiRouter) {
       CompileManager.compile(
       CompileManager.compile(
         projectId,
         projectId,
         testUserId,
         testUserId,
-        {},
+        { metricsPath: 'health-check' },
         function (error, status, _outputFiles, clsiServerId) {
         function (error, status, _outputFiles, clsiServerId) {
           if (handler) {
           if (handler) {
             clearTimeout(handler)
             clearTimeout(handler)