Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Of course I can. One thing I use is https://github.com/octokit/octokit.rb/ for accessing Githubs API. The other is https://github.com/arangamani/jenkins_api_client for Jenkins
No need to lose your mind! Here's a solution I whipped up in a couple of minutes using Polyphony, a gem that seems made just for situations like these: https://gist.github.com/ciconia/2beecc22eb34d2be6163567428e4aac8
Unfortunately the gem jenkins_api_client uses net-http library directly https://github.com/arangamani/jenkins_api_client/blob/c59970e8530e1e2caa0db3bdec70d1f09e8750b2/lib/jenkins_api_client/client.rb#L423 . This does not allow easy customization.
I think this example is exactly what you need: https://github.com/socketry/async-http#multiple-requests