@lokalise/background-jobs-common
Advanced tools
Comparing version 10.0.0 to 10.0.1
@@ -10,5 +10,5 @@ "use strict"; | ||
const constants_1 = require("../constants"); | ||
const BackgroundJobProcessorMonitor_1 = require("../monitoring/BackgroundJobProcessorMonitor"); | ||
const BackgroundJobProcessorSpy_1 = require("../spy/BackgroundJobProcessorSpy"); | ||
const utils_1 = require("../utils"); | ||
const BackgroundJobProcessorMonitor_1 = require("../monitoring/BackgroundJobProcessorMonitor"); | ||
class AbstractBackgroundJobProcessor { | ||
@@ -140,2 +140,4 @@ errorReporter; // TODO: once hook handling is extracted, errorReporter should be moved to BackgroundJobProcessorMonitor | ||
async scheduleBulk(jobData, options) { | ||
if (jobData.length === 0) | ||
return []; | ||
await this.startIfNotStarted(); | ||
@@ -142,0 +144,0 @@ const jobs = (await this._queue?.addBulk(jobData.map((data) => ({ |
{ | ||
"name": "@lokalise/background-jobs-common", | ||
"version": "10.0.0", | ||
"version": "10.0.1", | ||
"files": ["dist", "LICENSE.md", "README.md"], | ||
@@ -5,0 +5,0 @@ "author": { |
74741
1404