Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a connection to the pool if there is only one in the EmbeddedAnsi…
…ble worker Before ManageIQ#6786 we used to have one connection specified in the connection pool in database.yml Installations which have been upgraded from before this change still have that one connection pool in place. The EmbeddedAnsible worker uses a thread rather than a new process so it shares the connection pool with the server. When the pool is set to only contain one connection, the EmbeddedAnsible worker will not be able to start. This commit adds a connection to the pool in the same way that we do for workers which specify a specific connection pool size in their settings: https://github.com/ManageIQ/manageiq/blob/f6f7120749d16fd7825f83001dfd875cdecb903c/app/models/miq_worker/runner.rb#L71-L78 https://bugzilla.redhat.com/show_bug.cgi?id=1484150
- Loading branch information