Automatically remove unused deployments #3023
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
With these changes,
graph-node
will automatically remove unused deployments, and it therefore won't be necessary to manually rungraphman unused record
andgraphman unused remove
. When a deployment is detected to be unused,graph-node
will wait forGRAPH_REMOVE_UNUSED_INTERVAL
minutes (default: 6hrs) before actually deleting the deployment's data.As a reminder, a deployment is considered unused if it is neither the current or pending version of a subgraph, and also not assigned to any indexing node.