docs(spikes): OpenWorkflow and Pi SDK compatibility spikes + ADR-002/003 (W0-B)
Co-Authored-By: Claude Fable 5.1 <[email protected]>
This commit is contained in:
1 parent
8b90d396b2
commit
ec023a8405
16 files changed
+2884
No files matched your search
@@ -0,0 +1,8 @@
|
||||
import { makeClient, initBiz, TAG, WF_VERSION } from "./common.ts";
|
||||
await initBiz();
|
||||
const { ow } = await makeClient();
|
||||
const worker = ow.newWorker({ concurrency: Number(process.env.CONCURRENCY ?? 4) });
|
||||
await worker.start();
|
||||
if (process.env.PIDFILE) (await import("node:fs")).writeFileSync(process.env.PIDFILE, String(process.pid));
|
||||
console.log(`[${TAG}] worker started pid=${process.pid} version=${WF_VERSION}`);
|
||||
process.on("SIGTERM", async () => { await worker.stop(); process.exit(0); });
|
||||
Reference in new issue
Block a user