@io-orkes/conductor-javascript 0.0.8 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -9490,7 +9490,6 @@ init_esm_shims();
|
|
|
9490
9490
|
|
|
9491
9491
|
// src/task/TaskRunner.ts
|
|
9492
9492
|
init_esm_shims();
|
|
9493
|
-
import { setTimeout as setTimeout2 } from "timers/promises";
|
|
9494
9493
|
var DEFAULT_ERROR_MESSAGE = "An unknown error occurred";
|
|
9495
9494
|
var noopLogger = {
|
|
9496
9495
|
debug: (...args) => {
|
|
@@ -9531,7 +9530,7 @@ var TaskRunner = class {
|
|
|
9531
9530
|
} catch (unknownError) {
|
|
9532
9531
|
this.handleUnknownError(unknownError);
|
|
9533
9532
|
}
|
|
9534
|
-
await
|
|
9533
|
+
await new Promise((r) => setTimeout(() => r(true), this.options.pollInterval));
|
|
9535
9534
|
}
|
|
9536
9535
|
};
|
|
9537
9536
|
this.executeTask = async (task) => {
|
|
@@ -12066,7 +12065,7 @@ var TaskManager = class {
|
|
|
12066
12065
|
this.logger = config.logger ?? new DefaultLogger();
|
|
12067
12066
|
this.workers = workers;
|
|
12068
12067
|
const providedOptions = config.options ?? {};
|
|
12069
|
-
this.taskManageOptions = __spreadProps(__spreadValues({}, defaultManagerOptions), {
|
|
12068
|
+
this.taskManageOptions = __spreadProps(__spreadValues(__spreadValues({}, defaultManagerOptions), providedOptions), {
|
|
12070
12069
|
workerID: workerId(providedOptions)
|
|
12071
12070
|
});
|
|
12072
12071
|
}
|