Commit d47b403
committed
fix(inference): correct Piscina queue-saturation message match in PiiRegexWorkerService
Address review feedback: the service matched 'Task queue is at capacity' but
Piscina 5.3.1 throws 'Task queue is at limit', so the saturation branch never
fired. Fixed the string in the service and the mock in the test. Piscina does
not expose a stable error code, so message matching is the only option;
added a comment pinning the verified version.
Reviewed-at: elastic#288758 (comment)1 parent e6c8be3 commit d47b403
2 files changed
Lines changed: 5 additions & 3 deletions
File tree
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
92 | 94 | | |
93 | 95 | | |
94 | 96 | | |
| |||
0 commit comments