Execution history issue – only stores 2 days

Hi everyone,

I’m experiencing an issue with the execution history in my n8n instance. It’s only retaining executions from the last 2 days, and I can’t manage to make it store more.

I’ve tried setting the following environment variables:

EXECUTIONS_DATA_PRUNE=true
EXECUTIONS_DATA_MAX_AGE=1000
EXECUTIONS_DATA_PRUNE_MAX_COUNT=999999

I also tested with EXECUTIONS_DATA_PRUNE_MAX_COUNT=0, since according to the documentation that should mean “no limit”, but it didn’t help either.

Does anyone know what could be causing this or how I should configure these variables properly?

Thanks in advance!

You appear to have already read and understood the documentation, so it’s hard to tell why it isn’t behaving as expected.

Please add more details on your setup in case there is a known issue someone might recognize.

  • n8n version?
  • database type?
  • space available for database table storage?
  • hosting environment (cloud hosting service, docker, etc.)?

Hello

n8n version: 1.89
database type: PostgresSQL
space available for database table storage 60GB
hosting environment (cloud hosting service, docker, etc.) Hosting on Railway.com