MCPcopy Create free account
hub / github.com/PrairieLearn/PrairieLearn / startJob

Function startJob

lib/load.js:125–132  ·  view source on GitHub ↗
(jobType, id, maxJobCount)

Source from the content-addressed store, hash-verified

123 },
124
125 startJob(jobType, id, maxJobCount) {
126 debug(`startJob(): jobType = ${jobType}, id = ${id}, maxJobCount = ${maxJobCount}`);
127 if (!_.has(estimators, jobType)) {
128 // lazy estimator creation, needed for unit tests
129 estimators[jobType] = new LoadEstimator(jobType, maxJobCount);
130 }
131 estimators[jobType].startJob(id);
132 },
133
134 endJob(jobType, id) {
135 debug(`endJob(): jobType = ${jobType}, id = ${id}`);

Callers

nothing calls this directly

Calls 2

debugFunction · 0.85
startJobMethod · 0.80

Tested by

no test coverage detected