@hotmeshio/long-tail 0.1.9 → 0.1.10
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/build/start/workers.js +8 -1
- package/package.json +1 -1
package/build/start/workers.js
CHANGED
|
@@ -114,9 +114,16 @@ async function startWorkers(startConfig, workers, builtinMcpServerFactories) {
|
|
|
114
114
|
});
|
|
115
115
|
// Start each worker
|
|
116
116
|
for (const w of workers) {
|
|
117
|
+
if (w.connection?.readonly) {
|
|
118
|
+
// Readonly workers register for discovery only — they must not
|
|
119
|
+
// consume messages from the stream (that is the real worker's job).
|
|
120
|
+
(0, registry_1.registerWorker)(w.workflow.name, w.taskQueue);
|
|
121
|
+
logger_1.loggerRegistry.info(`[long-tail] readonly worker registered: ${w.taskQueue}::${w.workflow.name}`);
|
|
122
|
+
continue;
|
|
123
|
+
}
|
|
117
124
|
const label = `${w.taskQueue}::${w.workflow.name}`;
|
|
118
125
|
const worker = await hotmesh_1.Durable.Worker.create({
|
|
119
|
-
connection
|
|
126
|
+
connection,
|
|
120
127
|
taskQueue: w.taskQueue,
|
|
121
128
|
workflow: w.workflow,
|
|
122
129
|
guid: `${label}-${hotmesh_1.Durable.guid()}`,
|
package/package.json
CHANGED