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

[edison-jobs] Limit number of preserved log entries #120

Open
christianpohlmann7111 opened this issue Apr 20, 2020 · 1 comment
Open

[edison-jobs] Limit number of preserved log entries #120

christianpohlmann7111 opened this issue Apr 20, 2020 · 1 comment

Comments

@christianpohlmann7111
Copy link
Contributor

We observed a case where the number of log entries was too large for a mongo document resulting in an error to save it to the jobInfo collection.

We would like to optionally be able to limit the number of preserved log entries per job, for instance by only saving the last N entries.

@MediaMarco
Copy link
Member

I implemented a cleanup strategy that helps if a job is moving towards the MongoDB document size limit. In that case, only the last 1000 Job Messages are kept and the Job can go on. It's in Release 2.2.10.

An option to generally just keep the last N entries is still a TODO.

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