@workglow/storage 0.0.71 → 0.0.73

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 CHANGED
@@ -676,7 +676,12 @@ class InMemoryQueueStorage {
676
676
  await sleep(0);
677
677
  const job = this.jobQueue.find((j) => j.id === id && this.matchesPrefixes(j));
678
678
  if (!job) {
679
- throw new Error(`Job ${id} not found`);
679
+ console.warn("Job not found for progress update", id);
680
+ return;
681
+ }
682
+ if (job.status === JobStatus.COMPLETED || job.status === JobStatus.FAILED) {
683
+ console.warn("Job already completed or failed for progress update", id);
684
+ return;
680
685
  }
681
686
  const oldJob = { ...job };
682
687
  job.progress = progress;
@@ -4117,4 +4122,4 @@ export {
4117
4122
  CACHED_TABULAR_REPOSITORY
4118
4123
  };
4119
4124
 
4120
- //# debugId=BF5A8CD1CB6E8FCD64756E2164756E21
4125
+ //# debugId=8E3873F6AB0E1B4764756E2164756E21