@@ -80,6 +80,7 @@ Here are the options under the `worker` key as defined by
80
80
crontabFile ?: string ;
81
81
events ?: WorkerEvents ;
82
82
fileExtensions ?: string [];
83
+ getQueueNameBatchDelay ?: number ;
83
84
gracefulShutdownAbortTimeout ?: number ;
84
85
logger ?: Logger < {}> ;
85
86
maxPoolSize ?: number ;
@@ -103,7 +104,8 @@ Number of jobs to run concurrently.
103
104
104
105
Type: ` string | undefined `
105
106
106
- Database [ connection string] ( ./connection-string.md ) .
107
+ Database
108
+ [ connection string] ( https://worker.graphile.org/docs/connection-string ) .
107
109
108
110
### worker.crontabFile
109
111
@@ -116,7 +118,7 @@ Override path to crontab file.
116
118
Type: ` WorkerEvents | undefined `
117
119
118
120
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) ).
120
122
121
123
### worker.fileExtensions
122
124
@@ -126,6 +128,16 @@ A list of file extensions (in priority order) that Graphile Worker should
126
128
attempt to import directly when loading tasks. Defaults to
127
129
` [".js", ".cjs", ".mjs"] ` .
128
130
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
+
129
141
### worker.gracefulShutdownAbortTimeout
130
142
131
143
Type: ` number | undefined `
0 commit comments