Skip to content

Commit b0fea01

Browse files
committed
Update options in docs
1 parent 1c1fcf2 commit b0fea01

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

website/docs/config.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ Here are the options under the `worker` key as defined by
8080
crontabFile?: string;
8181
events?: WorkerEvents;
8282
fileExtensions?: string[];
83+
getQueueNameBatchDelay?: number;
8384
gracefulShutdownAbortTimeout?: number;
8485
logger?: Logger<{}>;
8586
maxPoolSize?: number;
@@ -103,7 +104,8 @@ Number of jobs to run concurrently.
103104

104105
Type: `string | undefined`
105106

106-
Database [connection string](./connection-string.md).
107+
Database
108+
[connection string](https://worker.graphile.org/docs/connection-string).
107109

108110
### worker.crontabFile
109111

@@ -116,7 +118,7 @@ Override path to crontab file.
116118
Type: `WorkerEvents | undefined`
117119

118120
A Node.js `EventEmitter` that exposes certain events within the runner (see
119-
[`WorkerEvents`](/docs/worker-events)).
121+
[`WorkerEvents`](https://worker.graphile.org/docs/worker-events)).
120122

121123
### worker.fileExtensions
122124

@@ -126,6 +128,16 @@ A list of file extensions (in priority order) that Graphile Worker should
126128
attempt to import directly when loading tasks. Defaults to
127129
`[".js", ".cjs", ".mjs"]`.
128130

131+
### worker.getQueueNameBatchDelay
132+
133+
Type: `number | undefined`
134+
135+
**Experimental**
136+
137+
When getting a queue name in a job, we batch calls for efficiency. By default we
138+
do this over a 50ms window; increase this for greater efficiency, reduce this to
139+
reduce the latency for getting an individual queue name.
140+
129141
### worker.gracefulShutdownAbortTimeout
130142

131143
Type: `number | undefined`

0 commit comments

Comments
 (0)