@dudousxd/nestjs-durable-core 0.49.0 → 0.49.1
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.cjs +12 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +12 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2960,10 +2960,21 @@ var WorkflowEngine = class {
|
|
|
2960
2960
|
...this.knownGroups(extra),
|
|
2961
2961
|
...await this.pool.listWorkerGroups()
|
|
2962
2962
|
]);
|
|
2963
|
+
const workflowTokens = /* @__PURE__ */ new Set();
|
|
2964
|
+
for (const def of this.workflows.values()) {
|
|
2965
|
+
workflowTokens.add(sanitizeQueueToken(def.name));
|
|
2966
|
+
if (def.remote?.group) workflowTokens.add(def.remote.group);
|
|
2967
|
+
}
|
|
2963
2968
|
const out = [];
|
|
2964
2969
|
for (const group of groups) {
|
|
2965
2970
|
const health = await this.pool.groupHealth(group);
|
|
2966
|
-
if (health)
|
|
2971
|
+
if (!health) continue;
|
|
2972
|
+
const at = group.lastIndexOf("@");
|
|
2973
|
+
const baseToken = at === -1 ? group : group.slice(0, at);
|
|
2974
|
+
out.push({
|
|
2975
|
+
...health,
|
|
2976
|
+
kind: workflowTokens.has(baseToken) ? "workflow" : "step"
|
|
2977
|
+
});
|
|
2967
2978
|
}
|
|
2968
2979
|
return out;
|
|
2969
2980
|
}
|