Commit 798f9af
authored
Auto-detect captureOutput based on output column existence (#459)
* Auto-detect captureOutput based on output column existence
Instead of requiring explicit `Queue.captureOutput` configuration,
the Processor now auto-detects whether to capture output by checking
if the `output` column exists on the `queued_jobs` table.
Explicit config still takes precedence. The result is cached per
worker lifetime so the schema check only happens once.
* Fix CI: handle mock table schema in captureOutput() and suppress deprecation in test
Wrap getSchema()->hasColumn() in try/catch to handle mock tables in tests
(and any edge case in production). Suppress E_USER_DEPRECATED in
InfoCommandTest that deliberately uses old config keys.1 parent b8b9e5d commit 798f9af
2 files changed
Lines changed: 38 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
89 | 94 | | |
90 | 95 | | |
91 | 96 | | |
| |||
225 | 230 | | |
226 | 231 | | |
227 | 232 | | |
228 | | - | |
| 233 | + | |
229 | 234 | | |
230 | 235 | | |
231 | 236 | | |
| |||
361 | 366 | | |
362 | 367 | | |
363 | 368 | | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
364 | 393 | | |
365 | 394 | | |
366 | 395 | | |
| |||
372 | 401 | | |
373 | 402 | | |
374 | 403 | | |
375 | | - | |
| 404 | + | |
376 | 405 | | |
377 | 406 | | |
378 | 407 | | |
| |||
395 | 424 | | |
396 | 425 | | |
397 | 426 | | |
398 | | - | |
| 427 | + | |
399 | 428 | | |
400 | 429 | | |
401 | 430 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
57 | 61 | | |
58 | 62 | | |
| 63 | + | |
| 64 | + | |
59 | 65 | | |
60 | 66 | | |
61 | 67 | | |
| |||
0 commit comments