From b0fea0186a85317045b8ba0008d5430a16eab4a8 Mon Sep 17 00:00:00 2001 From: Benjie Gillam Date: Fri, 6 Dec 2024 12:59:01 +0000 Subject: [PATCH] Update options in docs --- website/docs/config.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/website/docs/config.md b/website/docs/config.md index 56a143ad..0d15de68 100644 --- a/website/docs/config.md +++ b/website/docs/config.md @@ -80,6 +80,7 @@ Here are the options under the `worker` key as defined by crontabFile?: string; events?: WorkerEvents; fileExtensions?: string[]; + getQueueNameBatchDelay?: number; gracefulShutdownAbortTimeout?: number; logger?: Logger<{}>; maxPoolSize?: number; @@ -103,7 +104,8 @@ Number of jobs to run concurrently. Type: `string | undefined` -Database [connection string](./connection-string.md). +Database +[connection string](https://worker.graphile.org/docs/connection-string). ### worker.crontabFile @@ -116,7 +118,7 @@ Override path to crontab file. Type: `WorkerEvents | undefined` A Node.js `EventEmitter` that exposes certain events within the runner (see -[`WorkerEvents`](/docs/worker-events)). +[`WorkerEvents`](https://worker.graphile.org/docs/worker-events)). ### worker.fileExtensions @@ -126,6 +128,16 @@ A list of file extensions (in priority order) that Graphile Worker should attempt to import directly when loading tasks. Defaults to `[".js", ".cjs", ".mjs"]`. +### worker.getQueueNameBatchDelay + +Type: `number | undefined` + +**Experimental** + +When getting a queue name in a job, we batch calls for efficiency. By default we +do this over a 50ms window; increase this for greater efficiency, reduce this to +reduce the latency for getting an individual queue name. + ### worker.gracefulShutdownAbortTimeout Type: `number | undefined`