From 74a1f7b6b600d4cb53352dde7def374c3125721a Mon Sep 17 00:00:00 2001 From: Mohamed Bassem Date: Sun, 5 Oct 2025 07:04:29 +0100 Subject: feat: Restate-based queue plugin (#2011) * WIP: Initial restate integration * add retry * add delay + idempotency * implement concurrency limits * add admin stats * add todos * add id provider * handle onComplete failures * add tests * add pub key and fix logging * add priorities * fail call after retries * more fixes * fix retries left * some refactoring * fix package.json * upgrade sdk * some test cleanups --- packages/plugins-queue-restate/src/env.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 packages/plugins-queue-restate/src/env.ts (limited to 'packages/plugins-queue-restate/src/env.ts') diff --git a/packages/plugins-queue-restate/src/env.ts b/packages/plugins-queue-restate/src/env.ts new file mode 100644 index 00000000..01175e86 --- /dev/null +++ b/packages/plugins-queue-restate/src/env.ts @@ -0,0 +1,13 @@ +import { z } from "zod"; + +export const envConfig = z + .object({ + RESTATE_LISTEN_PORT: z.coerce.number().optional(), + RESTATE_INGRESS_ADDR: z + .string() + .optional() + .default("http://localhost:8080"), + RESTATE_ADMIN_ADDR: z.string().optional().default("http://localhost:9070"), + RESTATE_PUB_KEY: z.string().optional(), + }) + .parse(process.env); -- cgit v1.2.3-70-g09d2