{"action":"opened","issue":{"url":"https://api.github.com/repos/pantsbuild/pants/issues/1762","labels_url":"https://api.github.com/repos/pantsbuild/pants/issues/1762/labels{/name}","comments_url":"https://api.github.com/repos/pantsbuild/pants/issues/1762/comments","events_url":"https://api.github.com/repos/pantsbuild/pants/issues/1762/events","html_url":"https://github.com/pantsbuild/pants/issues/1762","id":93565423,"number":1762,"title":"Support for periodically GC'ing a local buildcache instance","user":{"login":"stuhood","id":46740,"avatar_url":"https://avatars.githubusercontent.com/u/46740?v=3","gravatar_id":"","url":"https://api.github.com/users/stuhood","html_url":"https://github.com/stuhood","followers_url":"https://api.github.com/users/stuhood/followers","following_url":"https://api.github.com/users/stuhood/following{/other_user}","gists_url":"https://api.github.com/users/stuhood/gists{/gist_id}","starred_url":"https://api.github.com/users/stuhood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stuhood/subscriptions","organizations_url":"https://api.github.com/users/stuhood/orgs","repos_url":"https://api.github.com/users/stuhood/repos","events_url":"https://api.github.com/users/stuhood/events{/privacy}","received_events_url":"https://api.github.com/users/stuhood/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-07T16:02:51Z","updated_at":"2015-07-07T16:02:51Z","closed_at":null,"body":"`local_artifact_cache.py` should gain support for periodically clearing out \"old\" artifacts.\r\n\r\nThe primary usecase is for automated processes (like CI) which build things almost constantly, and which may have disk usage constraints. But this also benefits users who dislike unbounded growth of build support directories.\r\n\r\nIt's possible that the change should be made generically in `artifact_cache.py`, which would allow callers to set up a background task generically via `run_tracker.py` and `worker_pool.py`."}}