Commit d616487
committed
Prevent permanent waits from destroyed workers
Prevent permanent waits, by ensuring that we continue creating
resources if we need them
* There are many errors due to pools being configured with min: 0
but then running out of workers while there is still work to do
* This results in missed work, infinite loops and timeouts
* A solution is to ensure that if we still have work todo
that we make sure we still have some workers to do them
See:
* brianc/node-pg-pool#48
* loopbackio/loopback-connector-postgresql#231
* #175 (Seems related)1 parent 7865e04 commit d616487
1 file changed
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
305 | | - | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
306 | 314 | | |
307 | | - | |
308 | 315 | | |
309 | | - | |
| 316 | + | |
310 | 317 | | |
311 | 318 | | |
312 | 319 | | |
| |||
0 commit comments