@io-orkes/conductor-javascript 1.2.1 → 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 +5 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/browser.js
CHANGED
|
@@ -2424,10 +2424,14 @@ var TaskRunner = class {
|
|
|
2424
2424
|
return tasks;
|
|
2425
2425
|
};
|
|
2426
2426
|
this.updateTaskWithRetry = async (task, taskResult) => {
|
|
2427
|
+
const { workerID } = this.options;
|
|
2427
2428
|
let retryCount = 0;
|
|
2428
2429
|
while (retryCount < MAX_RETRIES) {
|
|
2429
2430
|
try {
|
|
2430
|
-
await this.taskResource.updateTask1(
|
|
2431
|
+
await this.taskResource.updateTask1({
|
|
2432
|
+
...taskResult,
|
|
2433
|
+
workerId: workerID
|
|
2434
|
+
});
|
|
2431
2435
|
return;
|
|
2432
2436
|
} catch (error) {
|
|
2433
2437
|
this.errorHandler(error, task);
|