[14.x] Flush sticky connections between queue jobs by default
Merged
JA
11d ago+7+7+0123456789-7-7-0123456789
Gooood morning!
I'm on a 14.x roll, so apologies for the fact you see my face.
I added this in 13. as an opt in, but, I think this should be the default behaviour in 14.x, as it's what happens with requests etc.
Without it, once any job writes on a sticky connection all other jobs the worker processes will essentially be stuck on the write connection until the worker restarts, this can be a problem if you set the memory high and no jobs actually fully reach it.
This is a behaviour change, so targeted 14.x - have also tweaked tests
update log: Worker::$flushStickyConnections now defaults to true. To restore the previous behaviour, set it to false in a service provider..