{"action":"created","issue":{"url":"https://api.github.com/repos/choonkeat/attache/issues/3","labels_url":"https://api.github.com/repos/choonkeat/attache/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/choonkeat/attache/issues/3/comments","events_url":"https://api.github.com/repos/choonkeat/attache/issues/3/events","html_url":"https://github.com/choonkeat/attache/issues/3","id":108277739,"number":3,"title":"When images did not get backup to config.storage","user":{"login":"choonkeat","id":473,"avatar_url":"https://avatars.githubusercontent.com/u/473?v=3","gravatar_id":"","url":"https://api.github.com/users/choonkeat","html_url":"https://github.com/choonkeat","followers_url":"https://api.github.com/users/choonkeat/followers","following_url":"https://api.github.com/users/choonkeat/following{/other_user}","gists_url":"https://api.github.com/users/choonkeat/gists{/gist_id}","starred_url":"https://api.github.com/users/choonkeat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/choonkeat/subscriptions","organizations_url":"https://api.github.com/users/choonkeat/orgs","repos_url":"https://api.github.com/users/choonkeat/repos","events_url":"https://api.github.com/users/choonkeat/events{/privacy}","received_events_url":"https://api.github.com/users/choonkeat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-25T07:35:54Z","updated_at":"2015-09-25T09:23:38Z","closed_at":null,"body":"Upload was deem slow when uploads were backed up to cloud (e.g. s3) synchronously: file transfer from browser to server then server to s3. This would result in a timeout error for uploads, esp when hosted on heroku.\r\n\r\nThus the logic was https://github.com/choonkeat/attache/blob/master/lib/attache/upload.rb#L23-L28 \r\n- first, the file is written to local cache (and would fail hard if that didn't happen)\r\n- then the browser would get a thumbsup and everything proceed\r\n- background job will upload that file to cloud\r\n\r\nSo now, if the background job fail for some reason, after retries, what is the recourse?"},"comment":{"url":"https://api.github.com/repos/choonkeat/attache/issues/comments/143168526","html_url":"https://github.com/choonkeat/attache/issues/3#issuecomment-143168526","issue_url":"https://api.github.com/repos/choonkeat/attache/issues/3","id":143168526,"user":{"login":"choonkeat","id":473,"avatar_url":"https://avatars.githubusercontent.com/u/473?v=3","gravatar_id":"","url":"https://api.github.com/users/choonkeat","html_url":"https://github.com/choonkeat","followers_url":"https://api.github.com/users/choonkeat/followers","following_url":"https://api.github.com/users/choonkeat/following{/other_user}","gists_url":"https://api.github.com/users/choonkeat/gists{/gist_id}","starred_url":"https://api.github.com/users/choonkeat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/choonkeat/subscriptions","organizations_url":"https://api.github.com/users/choonkeat/orgs","repos_url":"https://api.github.com/users/choonkeat/repos","events_url":"https://api.github.com/users/choonkeat/events{/privacy}","received_events_url":"https://api.github.com/users/choonkeat/received_events","type":"User","site_admin":false},"created_at":"2015-09-25T09:23:38Z","updated_at":"2015-09-25T09:23:38Z","body":"> Background jobs are already supposedly retrying indefinitely\r\n\r\n- but it didn't happen\r\n- the production server was working for other subsequent files (meaning no error between cloud storage)\r\n- the upload that didn't make it was more than 30 days ago\r\n\r\n:rage: "}}