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

Remove old entries in harvest_job_table #480

Open
frafra opened this issue Nov 17, 2021 · 2 comments
Open

Remove old entries in harvest_job_table #480

frafra opened this issue Nov 17, 2021 · 2 comments

Comments

@frafra
Copy link
Contributor

frafra commented Nov 17, 2021

clean-harvest-log removes old logs, but I have not found anything similar to clean harvest_job_table. Having automatic harvesting means ending up with a forever-growing, non paginated/non-searchable job page, which seems pretty useless to me.

What about keeping the last 100 jobs by default and/or having a clean-up procedure? Like clean-harvest-jobs.

@seitenbau-govdata
Copy link
Member

I think there is already a command clear-history

def clear_history(ctx, id):
or rather clearsource_history
elif cmd == "clearsource_history":
for deleting the old harvest jobs and the related objects. But at the moment the command still deletes all old and current harvest jobs and harvest objects. But we already working on a pull request with an updated version which keeps at least the running harvest jobs and latest harvest objects.

@seitenbau-govdata
Copy link
Member

The pull request is now available. #484

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