Commit 9f9f794
fix(config): add signedInt schema type for CAMUNDA_WORKER_REQUEST_TIMEOUT
CAMUNDA_WORKER_REQUEST_TIMEOUT supports negative values (immediate
completion semantics), but was typed as 'string' in the schema, making
CamundaOptions.config accept string instead of number for this key and
bypassing input validation entirely.
Introduce a 'signedInt' schema type with a dedicated parser that accepts
base-10 integers with an optional leading minus sign. This:
- Types the config override as number in TypeScript
- Validates input (rejects 'abc', '5.0', etc.)
- Allows negative values like -1
Also fix the worker defaults comment to mention both createJobWorker
and createThreadedJobWorker.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 74dd50d commit 9f9f794
2 files changed
+32
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
212 | | - | |
| 212 | + | |
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
223 | | - | |
| 222 | + | |
| 223 | + | |
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
242 | | - | |
| 242 | + | |
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
193 | 210 | | |
194 | 211 | | |
195 | 212 | | |
| |||
291 | 308 | | |
292 | 309 | | |
293 | 310 | | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
294 | 318 | | |
295 | 319 | | |
296 | 320 | | |
| |||
334 | 358 | | |
335 | 359 | | |
336 | 360 | | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
337 | 365 | | |
338 | 366 | | |
339 | 367 | | |
| |||
0 commit comments