Issue - Rebeated crashes after upgrade - FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory

Ok - one of the workflows just ran and the cleanup happened !!
So my understanding is that

  • EXECUTIONS_DATA_MAX_AGE=5
  • EXECUTIONS_DATA_PRUNE=true
    trigger as soon as a workflow runs

and

  • DB_SQLITE_VACUUM_ON_STARTUP=true
    runs only when docker is restarted and reduces the filesize of the actual sqlite db/file

CLARIFICATION:
However

  • EXECUTIONS_DATA_MAX_AGE=5
  • EXECUTIONS_DATA_PRUNE=true
    dont both need to be there.
    Looks like the PRUNE directive cleaned up all executions from beyond Today so it ignores the MAX_AGE directive and just Prunes based on some optimization algo.

I dont think the MAX AGE is working in isolation at all.
Just checked on Nov 22 and I still have entries from Nov 10 with the MAX AGE set at 5.
Seems like a #BUG to me

image

Now I added DATA PRUNE and restarted and as soon as I ran a workflow - the execution history entries dropped from 1100 to 12.