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

Better zk cleanup for removed requests #1477

Merged
merged 4 commits into from Apr 5, 2017
Merged

Better zk cleanup for removed requests #1477

merged 4 commits into from Apr 5, 2017

Conversation

@ssalinas
Copy link
Member

ssalinas commented Mar 29, 2017

Cleans up a number of stale nodes created for requests.

On request delete:

  • remove from /deploys/requests
  • remove from /tasks/history

In purger (x -> purgeStaleRequestIdsAfterDays setting in config, 7 days by default)

  • In /deploys/requests delete if not in active request ids + hasn't been updated in x days + no STATE key present
  • In /tasks/history delete if not in active request ids + hasn't been updated in x days + no child nodes
  • In /metadata/mails delete if not in active request ids + hasn't been updated in x days

/cc @wsorenson

ssalinas added 4 commits Mar 29, 2017
@ssalinas ssalinas modified the milestone: 0.15.0 Mar 30, 2017
@ssalinas ssalinas merged commit 4c16ce9 into master Apr 5, 2017
0 of 2 checks passed
0 of 2 checks passed
continuous-integration/travis-ci/pr The Travis CI build failed
Details
continuous-integration/travis-ci/push The Travis CI build failed
Details
@ssalinas ssalinas deleted the zk_cleanup branch Apr 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

1 participant
You can’t perform that action at this time.