|
@@ -40,6 +40,11 @@ module.exports = CompileManager =
|
|
|
return callback(error) if error?
|
|
return callback(error) if error?
|
|
|
logger.log files: outputFiles, "output files"
|
|
logger.log files: outputFiles, "output files"
|
|
|
callback(null, status, outputFiles, output)
|
|
callback(null, status, outputFiles, output)
|
|
|
|
|
+
|
|
|
|
|
+ deleteAuxFiles: (project_id, callback = (error) ->) ->
|
|
|
|
|
+ CompileManager.getProjectCompileLimits project_id, (error, limits) ->
|
|
|
|
|
+ return callback(error) if error?
|
|
|
|
|
+ ClsiManager.deleteAuxFiles project_id, limits, callback
|
|
|
|
|
|
|
|
getProjectCompileLimits: (project_id, callback = (error, limits) ->) ->
|
|
getProjectCompileLimits: (project_id, callback = (error, limits) ->) ->
|
|
|
Project.findById project_id, {owner_ref: 1}, (error, project) ->
|
|
Project.findById project_id, {owner_ref: 1}, (error, project) ->
|
|
@@ -51,12 +56,6 @@ module.exports = CompileManager =
|
|
|
compileGroup: owner.features?.compileGroup || Settings.defaultFeatures.compileGroup
|
|
compileGroup: owner.features?.compileGroup || Settings.defaultFeatures.compileGroup
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- getLogLines: (project_id, callback)->
|
|
|
|
|
- Metrics.inc "editor.raw-logs"
|
|
|
|
|
- ClsiManager.getLogLines project_id, (error, logLines)->
|
|
|
|
|
- return callback(error) if error?
|
|
|
|
|
- callback null, logLines
|
|
|
|
|
-
|
|
|
|
|
COMPILE_DELAY: 1 # seconds
|
|
COMPILE_DELAY: 1 # seconds
|
|
|
_checkIfRecentlyCompiled: (project_id, user_id, callback = (error, recentlyCompiled) ->) ->
|
|
_checkIfRecentlyCompiled: (project_id, user_id, callback = (error, recentlyCompiled) ->) ->
|
|
|
key = "compile:#{project_id}:#{user_id}"
|
|
key = "compile:#{project_id}:#{user_id}"
|