(jobType, id, maxJobCount)
| 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}`); |