Scheduler fails with "ActiveRecord::ConnectionTimeoutError: could not obtain a connection from the pool within 5.000 seconds (waited 5.000 seconds); all pooled connections were in use>"

Just for tracking, this is related:

https://community.zammad.org/t/scheduler-not-connecting-to-database/14296/4