Some local testing with memory profiler reveals that the net-http-persistent faraday adapter can leak threads when running our example script.. This switches to the Net::HTTP adapter, which seems to be better-behaved. It's unclear whether it's a bug in how we were using the adapter, or something with some version of the adapter itself, but attempting to dig further into the adapter code was not a fruitful line of inquiry for me. 🤔
Some local testing with memory profiler reveals that the net-http-persistent faraday adapter can leak threads when running our example script.. This switches to the Net::HTTP adapter, which seems to be better-behaved. It's unclear whether it's a bug in how we were using the adapter, or something with some version of the adapter itself, but attempting to dig further into the adapter code was not a fruitful line of inquiry for me. 🤔