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

How to run GC? #9971

Closed
hacdias opened this issue Dec 4, 2019 · 3 comments
Closed

How to run GC? #9971

hacdias opened this issue Dec 4, 2019 · 3 comments
Labels
kind/support A question or request for support

Comments

@hacdias
Copy link
Member

hacdias commented Dec 4, 2019

While working on testground/testground#58, I hit myself on a wall: how can we call the Garbage Collector programmatically?

@hacdias
Copy link
Member Author

hacdias commented Dec 4, 2019

/cc @Stebalien (also, please let me know if there's someone else i should ping instead)

@Stebalien
Copy link
Member

ipfs repo gc. However, this isn't exposed over the CoreAPI. Take a look core/commands/repo.go (the repoGcCmd) for how this is implemented internally.

@Stebalien Stebalien added the kind/support A question or request for support label Dec 4, 2019
@Stebalien Stebalien reopened this Dec 4, 2019
@lidel lidel transferred this issue from ipfs/interface-go-ipfs-core Jun 19, 2023
@lidel
Copy link
Member

lidel commented Jun 19, 2023

repoGcCmd does:

gcOutChan := corerepo.GarbageCollectAsync(n, req.Context)

If doing the same is not feasible, consider opening PR that adds it to https://github.com/ipfs/kubo/tree/master/client/rpc

@lidel lidel closed this as not planned Won't fix, can't repro, duplicate, stale Jun 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support A question or request for support
Projects
No open projects
Archived in project
Development

No branches or pull requests

3 participants