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

add option to remove finished run from db after export #55

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

puhoy
Copy link
Member

@puhoy puhoy commented Feb 20, 2022

The indexer crashed since the hdd was too small to keep the data of two runs in the database: the current run, and the latest finished run.

until now we kept the table of the finished run to be able manually export to csv - which is not really needed, so we could just throw the table away after creating the exports.

this pr adds an optional envvar: if HUBGREP_KEEP_LAST_RUN_IN_DB is 0, we delete the table after export, otherwise (the default) it works as before, and we "rotate" the tables when a run finished.

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

Successfully merging this pull request may close these issues.

1 participant