my self-hosting service (render) is not restarting properly after I added
EXECUTIONS_DATA_PRUNE=true
DB_SQLITE_VACUUM_ON_STARTUP = true
to my render ‘Environments’ section. I did it because it was a suggestion i saw here: Why is my database so big?, since I started to get the SQLITE_FULL error when i was running executions
i’ve noticed that when I added the EXECUTIONS_DATA_PRUNE and DB_SQLITE_VACUUM_ON_STARTUP environment variables it starts to chuck errors in the log, and when I delete them it starts to work again.
on the other hand though i need to do something like that because my workflow’s won’t execute anyway with the SQLite error
I had to stop my service in order for the environment variables to work so I had to go to the dashboard of the project > Settings > scroll to the very bottom and find Suspend Web Service
basically any form of database pruning or vacuuming won’t really happen until the service is restarted, so I suspended the web service and turned it back on after adding the following variables: EXECUTIONS_DATA_MAX_AGE EXECUTIONS_DATA_PRUNE
EXECUTIONS_DATA_PRUNE to the value of true and EXECUTIONS_DATA_MAX_AGE to some number (I used 72 - the number represents hours) seemed to do the trick for me