@io-orkes/conductor-javascript 1.2.1-rc.4 → 1.2.2-rc.2
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/browser.js +5 -1
- package/dist/browser.js.map +1 -1
- package/dist/browser.mjs +5 -1
- package/dist/browser.mjs.map +1 -1
- package/dist/index.js +14 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2329,10 +2329,14 @@ var TaskRunner = class {
|
|
|
2329
2329
|
return tasks;
|
|
2330
2330
|
};
|
|
2331
2331
|
this.updateTaskWithRetry = async (task, taskResult) => {
|
|
2332
|
+
const { workerID } = this.options;
|
|
2332
2333
|
let retryCount = 0;
|
|
2333
2334
|
while (retryCount < MAX_RETRIES) {
|
|
2334
2335
|
try {
|
|
2335
|
-
await this.taskResource.updateTask1(
|
|
2336
|
+
await this.taskResource.updateTask1({
|
|
2337
|
+
...taskResult,
|
|
2338
|
+
workerId: workerID
|
|
2339
|
+
});
|
|
2336
2340
|
return;
|
|
2337
2341
|
} catch (error) {
|
|
2338
2342
|
this.errorHandler(error, task);
|
|
@@ -3795,8 +3799,16 @@ var baseOrkesConductorClient = (fetchFn, baseRequestHandler = defaultRequestHand
|
|
|
3795
3799
|
|
|
3796
3800
|
// src/orkes/OrkesConductorClient.ts
|
|
3797
3801
|
import fetch2, { Headers as Headers2 } from "node-fetch";
|
|
3802
|
+
import http from "http";
|
|
3803
|
+
import https from "https";
|
|
3804
|
+
var httpAgent = new http.Agent({ keepAlive: true });
|
|
3805
|
+
var httpsAgent = new https.Agent({ keepAlive: true });
|
|
3806
|
+
var agent = (_parsedURL) => _parsedURL.protocol == "http:" ? httpAgent : httpsAgent;
|
|
3798
3807
|
var nodeFetchWrapper = async (input, options = {}) => {
|
|
3799
|
-
const res = await fetch2(input.toString(),
|
|
3808
|
+
const res = await fetch2(input.toString(), {
|
|
3809
|
+
...options,
|
|
3810
|
+
agent
|
|
3811
|
+
});
|
|
3800
3812
|
return res;
|
|
3801
3813
|
};
|
|
3802
3814
|
var fetchCache = fetchCatchDns(
|