Better zk cleanup for removed requests #1477

Merged
merged 4 commits into from Apr 5, 2017

Conversation

Projects
None yet
1 participant
@ssalinas
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 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

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