Long time until job is processed on queue mode

Describe the problem/error/question

I run n8n in Docker with queue mode, with a separate service for main/worker/webhook processing. Concurrency for workers is set to 5. Time before a job is picked up, even when no worker is active, can take up to 20 seconds. The job itself takes ~50ms. This is too slow.

My environment variables for n8n config:

EXECUTIONS_MODE=queue
DB_TYPE=postgresdb
N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=false
N8N_MULTI_MAIN_SETUP_KEY_TTL=10
N8N_MULTI_MAIN_SETUP_CHECK_INTERVAL=3
N8N_DISABLE_PRODUCTION_MAIN_PROCESS=true
N8N_RUNNERS_ENABLED=true
N8N_RUNNERS_MODE=internal

What is the error message (if any)?

No error message

Please share your workflow

Not relevant

Information on your n8n setup

  • n8n version:: 1.90.2
  • Database (default: SQLite): PostgreSQL 16
  • n8n EXECUTIONS_PROCESS setting (default: own, main):: default
  • Running n8n via (Docker, npm, n8n cloud, desktop app):: Docker
  • Operating system:: Linux