MCPcopy Index your code
hub / github.com/PrairieLearn/PrairieLearn / startJob

Method startJob

lib/load.js:26–33  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

24 }
25
26 startJob(id) {
27 debug(`LoadEstimator.startJob(): jobType = ${this.jobType}, id = ${id}`);
28 this._addIntegratedLoad();
29 if (_.has(this.currentJobs, id)) {
30 logger.error(`load.startJob(): ${this.jobType} id already running: ${id}`);
31 }
32 this.currentJobs[id] = {startMS: Date.now()};
33 }
34
35 endJob(id) {
36 debug(`LoadEstimator.endJob(): jobType = ${this.jobType}, id = ${id}`);

Callers 6

server.jsFile · 0.80
startJobFunction · 0.80
_startChildMethod · 0.80
initFunction · 0.80
getPythonCallerFunction · 0.80
returnPythonCallerFunction · 0.80

Calls 2

_addIntegratedLoadMethod · 0.95
debugFunction · 0.85

Tested by

no test coverage detected