@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/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(taskResult);
2336
+ await this.taskResource.updateTask1({
2337
+ ...taskResult,
2338
+ workerId: workerID
2339
+ });
2336
2340
  return;
2337
2341
  } catch (error) {
2338
2342
  this.errorHandler(error, task);