Zammad scheduler database not connected

Infos:

  • Used Zammad version: 8.12.2
  • Used Zammad installation type: Docker-Compose
  • Operating system: Linux Debian

Expected behavior:

When I start zammad it shows following in the docker compose logs:

zammad-scheduler-1      | E, [2024-07-08T09:43:23.653684#1-160640] ERROR -- : Can't reconnect to database #<ActiveRecord::ConnectionTimeoutError: could not obtain a connection from the pool within 5.000 seconds (waited 5.001 seconds); all pooled connections were in use>
zammad-scheduler-1      | E, [2024-07-08T09:43:24.650761#1-160660] ERROR -- : Can't reconnect to database #<ActiveRecord::ConnectionTimeoutError: could not obtain a connection from the pool within 5.000 seconds (waited 5.000 seconds); all pooled connections were in use>

But my database is connected, so why this error?