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

How to clear log information of scheduled tasks #650

Open
lonewolfyx opened this issue Oct 11, 2023 · 8 comments
Open

How to clear log information of scheduled tasks #650

lonewolfyx opened this issue Oct 11, 2023 · 8 comments

Comments

@lonewolfyx
Copy link

I have many scheduled tasks, which will generate a lot of log files. What methods can I use to clean the logs conveniently?

@jhuckaby
Copy link
Owner

This controls how long the job logs are kept around, before being automatically deleted: https://github.com/jhuckaby/Cronicle/blob/master/docs/Configuration.md#job_data_expire_days

@lonewolfyx
Copy link
Author

Can I clean the logs stored on a job?

@jhuckaby
Copy link
Owner

I'm not sure what you mean. Are you asking if you can "edit" the logs for a completed job and prune rows to reduce the size? Alas, once the logs are stored, they cannot (easily) be edited. They are compressed with gzip and uploaded to your storage provider (S3 or other).

@lonewolfyx
Copy link
Author

I want to delete a log on a certain job instead of waiting for the time to expire and automatically delete it. I hope to have a clear log function for a certain event on the Schedule page

@jhuckaby
Copy link
Owner

Go to the Job Details page, and click here:

Screenshot 2023-10-12 at 8 59 53 PM

@lonewolfyx
Copy link
Author

This can only delete records one by one. Is there a batch?

@jhuckaby
Copy link
Owner

I'm sorry, there is no batch delete feature 😞

@lonewolfyx
Copy link
Author

i think this function is quite good. hope it can be supported in the future

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

No branches or pull requests

2 participants