-
Notifications
You must be signed in to change notification settings - Fork 1.1k
feat: add retention config for workspace_agent_logs
#21039
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
80049c4 to
9b7c3b4
Compare
db839b6 to
95e8a6c
Compare
workspace_agent_logs
bf5595f to
8ef92f7
Compare
workspace_agent_logsworkspace_agent_logs
8ef92f7 to
ee8e8de
Compare
7e8a005 to
b1ce17f
Compare
ee8e8de to
1c25487
Compare
b1ce17f to
d058883
Compare
bec5b55 to
a8cee6e
Compare
955dc9c to
9ccd75d
Compare
mtojek
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good 👍
9ccd75d to
54cf5f0
Compare
d058883 to
267c7d8
Compare
54cf5f0 to
fe71946
Compare
267c7d8 to
8843bb3
Compare
fe71946 to
a1bd345
Compare
8843bb3 to
b15783b
Compare
abc9827 to
d51c53d
Compare
📚 Documentation Check✨ No Changes NeededThe documentation for workspace agent logs retention has already been comprehensively updated in this PR. The changes include:
The documentation accurately explains the feature's behavior and configuration options. This comment was generated by an AI Agent through Coder Tasks |
b15783b to
3caa0ab
Compare
d51c53d to
58a76db
Compare
3caa0ab to
f8cefc6
Compare
Workspace agent logs retention is now explicit - it's enabled when --workspace-agent-logs-retention is set to a non-zero duration (default 7d), and disabled when set to 0. No fallback to global retention.
…tion The description was misleading by stating logs are deleted 'after this period' without explaining that retention is based on when the agent last connected, not the age of the logs themselves. Updated to clearly state that logs from non-latest builds are deleted if the agent hasn't connected within the retention period, and that logs from the latest build are always retained.
58a76db to
6bea198
Compare
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
PR Stack
workspace_agent_logs