{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/14646","labels_url":"https://api.github.com/repos/owncloud/core/issues/14646/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/14646/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/14646/events","html_url":"https://github.com/owncloud/core/issues/14646","id":59492699,"number":14646,"title":"Garbage collect chunk files through cron","user":{"login":"danimo","id":1315934,"avatar_url":"https://avatars.githubusercontent.com/u/1315934?v=3","gravatar_id":"","url":"https://api.github.com/users/danimo","html_url":"https://github.com/danimo","followers_url":"https://api.github.com/users/danimo/followers","following_url":"https://api.github.com/users/danimo/following{/other_user}","gists_url":"https://api.github.com/users/danimo/gists{/gist_id}","starred_url":"https://api.github.com/users/danimo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danimo/subscriptions","organizations_url":"https://api.github.com/users/danimo/orgs","repos_url":"https://api.github.com/users/danimo/repos","events_url":"https://api.github.com/users/danimo/events{/privacy}","received_events_url":"https://api.github.com/users/danimo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/core/labels/blue-ticket","name":"blue-ticket","color":"0033CC"},{"url":"https://api.github.com/repos/owncloud/core/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/owncloud/core/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/owncloud/core/milestones/48","html_url":"https://github.com/owncloud/core/milestones/9.0-current","labels_url":"https://api.github.com/repos/owncloud/core/milestones/48/labels","id":1196845,"number":48,"title":"9.0-current","description":"","creator":{"login":"cmonteroluque","id":879976,"avatar_url":"https://avatars.githubusercontent.com/u/879976?v=3","gravatar_id":"","url":"https://api.github.com/users/cmonteroluque","html_url":"https://github.com/cmonteroluque","followers_url":"https://api.github.com/users/cmonteroluque/followers","following_url":"https://api.github.com/users/cmonteroluque/following{/other_user}","gists_url":"https://api.github.com/users/cmonteroluque/gists{/gist_id}","starred_url":"https://api.github.com/users/cmonteroluque/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmonteroluque/subscriptions","organizations_url":"https://api.github.com/users/cmonteroluque/orgs","repos_url":"https://api.github.com/users/cmonteroluque/repos","events_url":"https://api.github.com/users/cmonteroluque/events{/privacy}","received_events_url":"https://api.github.com/users/cmonteroluque/received_events","type":"User","site_admin":false},"open_issues":642,"closed_issues":851,"state":"open","created_at":"2015-07-07T14:21:23Z","updated_at":"2016-01-08T09:14:35Z","due_on":"2016-03-08T04:00:00Z","closed_at":null},"comments":20,"created_at":"2015-03-02T15:05:25Z","updated_at":"2016-01-08T10:08:54Z","closed_at":null,"body":"### Current behavior\r\n\r\nCurrenly, stray chunk files are only collected during login in the web interface. Someone who uses owncloud almost exclusively through the client might pile up a lot of stray chunks.\r\n\r\n### Expected behavior\r\n\r\nThe cron process takes care of GC."},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/169953124","html_url":"https://github.com/owncloud/core/issues/14646#issuecomment-169953124","issue_url":"https://api.github.com/repos/owncloud/core/issues/14646","id":169953124,"user":{"login":"rullzer","id":45821,"avatar_url":"https://avatars.githubusercontent.com/u/45821?v=3","gravatar_id":"","url":"https://api.github.com/users/rullzer","html_url":"https://github.com/rullzer","followers_url":"https://api.github.com/users/rullzer/followers","following_url":"https://api.github.com/users/rullzer/following{/other_user}","gists_url":"https://api.github.com/users/rullzer/gists{/gist_id}","starred_url":"https://api.github.com/users/rullzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rullzer/subscriptions","organizations_url":"https://api.github.com/users/rullzer/orgs","repos_url":"https://api.github.com/users/rullzer/repos","events_url":"https://api.github.com/users/rullzer/events{/privacy}","received_events_url":"https://api.github.com/users/rullzer/received_events","type":"User","site_admin":false},"created_at":"2016-01-08T10:08:54Z","updated_at":"2016-01-08T10:08:54Z","body":"@PVince81 I think that still would not really scale if you have huge amounts of users. Or at least create significant (probabaly non required load).\r\n\r\nI think what we eventually want is to push job with a tuple `user, transferid`. With a 24H delay. Our joblist will already make sure that there is only one of those.\r\n\r\nAnd we can then also easily remove the job if the transfer and assembling does complete.\r\n\r\nThat way we really only run the cleanup job for left over chunks."}}