mirror of
https://github.com/openai/codex.git
synced 2026-11-18 15:01:48 +00:00
feat: limit number of rows per log (#13763)
avoid DB explosion. This is a temp solution
This commit is contained in:
1 parent
f891f516a5
commit
c8f4b5bc1e
3 files changed
+170
-12
No files matched your search
@@ -41,8 +41,8 @@ use crate::LogEntry;
|
||||
use crate::StateRuntime;
|
||||
|
||||
const LOG_QUEUE_CAPACITY: usize = 512;
|
||||
const LOG_BATCH_SIZE: usize = 64;
|
||||
const LOG_FLUSH_INTERVAL: Duration = Duration::from_millis(250);
|
||||
const LOG_BATCH_SIZE: usize = 128;
|
||||
const LOG_FLUSH_INTERVAL: Duration = Duration::from_secs(2);
|
||||
const LOG_RETENTION_DAYS: i64 = 90;
|
||||
|
||||
pub struct LogDbLayer {
|
||||
|
||||
Reference in new issue
Block a user