Skip to content
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

💡[feat] delete the task logs #9563

Open
KyanChen opened this issue Jun 25, 2024 · 3 comments
Open

💡[feat] delete the task logs #9563

KyanChen opened this issue Jun 25, 2024 · 3 comments
Labels
feature Feature requests

Comments

@KyanChen
Copy link

Describe the problem

how to delete the shell task logs?
image

Describe the solution you'd like

how to delete the shell task logs?
image

Describe alternatives you've considered

No response

Additional context

No response

@KyanChen KyanChen added the feature Feature requests label Jun 25, 2024
@ioga
Copy link
Contributor

ioga commented Jun 25, 2024

we don't have an explicit method to clean up these. they automatically go away after some time (72 hours if I remember corretcly).

@stoksc
Copy link
Contributor

stoksc commented Oct 22, 2024

There is a relatively new master configuration that looks like this:

retention_policy:
  log_retention_days: 7
  schedule: 0 0 * * *

This will retain logs for 7 days and enforce retention with a GC job every night at midnight. Experiments and trials are able to overwrite this cluster-wide default by passing:

retention_policy:
  log_retention_days: -1

The -1 causes us to retain logs indefinitely.

@stoksc
Copy link
Contributor

stoksc commented Oct 22, 2024

There is also a corresponding det task cleanup-logs command that will enforce the retention policy right away, but this still runs for all tasks, unfortunately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature requests
Projects
None yet
Development

No branches or pull requests

3 participants