Issue with hooks when more than 20 concurrent builds

When leveraging hooks (after_build, destroy) and hook tries to query /api/v2/hosts/ to get all_parameters, the hooks will hang httpd after around 20 concurrent builds. Any suggested workaround?


what’s inside of these hooks? They do trigger in parallel but if you do some hammer/API commands it can indeed cause issues. If you do complex things, I suggest to write a simple plugin, it’s not difficult.