mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
feat: add retention config for workspace_agent_logs (#21039)
Replace hardcoded 7-day retention for workspace agent logs with configurable retention from deployment settings. Defaults to 7d to preserve existing behavior. Depends on #21038 Updates #20743
This commit is contained in:
committed by
GitHub
parent
d9888ced11
commit
ff46917e62
Generated
+11
@@ -1803,3 +1803,14 @@ How long connection log entries are retained. Set to 0 to disable (keep indefini
|
||||
| Default | <code>7d</code> |
|
||||
|
||||
How long expired API keys are retained before being deleted. Keeping expired keys allows the backend to return a more helpful error when a user tries to use an expired key. Set to 0 to disable automatic deletion of expired keys.
|
||||
|
||||
### --workspace-agent-logs-retention
|
||||
|
||||
| | |
|
||||
|-------------|----------------------------------------------------|
|
||||
| Type | <code>duration</code> |
|
||||
| Environment | <code>$CODER_WORKSPACE_AGENT_LOGS_RETENTION</code> |
|
||||
| YAML | <code>retention.workspace_agent_logs</code> |
|
||||
| Default | <code>7d</code> |
|
||||
|
||||
How long workspace agent logs are retained. Logs from non-latest builds are deleted if the agent hasn't connected within this period. Logs from the latest build are always retained. Set to 0 to disable automatic deletion.
|
||||
|
||||
Reference in New Issue
Block a user