Running sqlite inmemory for a long time #164
-
I am using the SQLite storage for my jobs ( The only way to fix it is to restart the server. I am not sure where I should start debugging this since it does not happen in local development and only after 1-2 days in production. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
NOTE: It is imperative that the SQLite database is started in memory because of how the file system is set up in my project (which does not allow me to write the database to a file). |
Beta Was this translation helpful? Give feedback.
-
This seems related to: |
Beta Was this translation helpful? Give feedback.
-
The solution let inner = sqlx::pool::PoolOptions::new()
.max_lifetime(None)
.idle_timeout(None)
.connect(&std::env::var("DATABASE_URL")?)
.await?;
let storage = SqliteStorage::new(inner); |
Beta Was this translation helpful? Give feedback.
The solution