fix: keep workbench Kafka publisher worker-owned
This commit is contained in:
@@ -3,7 +3,7 @@ import { createWorkbenchHttpApp } from "../../internal/workbench/http.ts";
|
||||
import { workbenchRuntime } from "../../internal/workbench/runtime.ts";
|
||||
import { startHwlabKafkaEventBridge } from "../../internal/cloud/kafka-event-bridge.ts";
|
||||
|
||||
const runtime = workbenchRuntime();
|
||||
const runtime = workbenchRuntime(process.env, { eventPublisher: null });
|
||||
const kafkaEventBridge = runtime.mode === "agentrun-native" ? startHwlabKafkaEventBridge({ env: process.env }) : null;
|
||||
const app = createWorkbenchHttpApp({ dispatch: runtime.dispatch, snapshot: runtime.application.snapshot?.bind(runtime.application), authorization: process.env.WORKBENCH_API_AUTHORIZATION, mode: runtime.mode, kafkaEventBridge, close: async () => { await kafkaEventBridge?.stop?.(); await runtime.close(); } });
|
||||
const host = process.env.WORKBENCH_API_HOST || "0.0.0.0";
|
||||
|
||||
Reference in New Issue
Block a user