@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 +7 -2
- package/dist/browser.js.map +3 -3
- package/dist/bun.js +7 -2
- package/dist/bun.js.map +3 -3
- package/dist/node.js +7 -2
- package/dist/node.js.map +3 -3
- package/dist/queue/InMemoryQueueStorage.d.ts.map +1 -1
- package/package.json +5 -5
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
|
-
|
|
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=
|
|
4125
|
+
//# debugId=8E3873F6AB0E1B4764756E2164756E21
|