{"action":"created","issue":{"url":"https://api.github.com/repos/rholder/retrying/issues/50","repository_url":"https://api.github.com/repos/rholder/retrying","labels_url":"https://api.github.com/repos/rholder/retrying/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/rholder/retrying/issues/50/comments","events_url":"https://api.github.com/repos/rholder/retrying/issues/50/events","html_url":"https://github.com/rholder/retrying/pull/50","id":157231222,"number":50,"title":"Support for retry event hook","user":{"login":"bodenr","id":2048526,"avatar_url":"https://avatars.githubusercontent.com/u/2048526?v=3","gravatar_id":"","url":"https://api.github.com/users/bodenr","html_url":"https://github.com/bodenr","followers_url":"https://api.github.com/users/bodenr/followers","following_url":"https://api.github.com/users/bodenr/following{/other_user}","gists_url":"https://api.github.com/users/bodenr/gists{/gist_id}","starred_url":"https://api.github.com/users/bodenr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bodenr/subscriptions","organizations_url":"https://api.github.com/users/bodenr/orgs","repos_url":"https://api.github.com/users/bodenr/repos","events_url":"https://api.github.com/users/bodenr/events{/privacy}","received_events_url":"https://api.github.com/users/bodenr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-27T15:24:22Z","updated_at":"2016-06-09T14:16:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rholder/retrying/pulls/50","html_url":"https://github.com/rholder/retrying/pull/50","diff_url":"https://github.com/rholder/retrying/pull/50.diff","patch_url":"https://github.com/rholder/retrying/pull/50.patch"},"body":"It's very common for consumers to perform some action on each\r\nattempt iteration; for example logging a message that the operation\r\nfailed and a retry will be performed after some time. While this can\r\nbe done today using a custom wait_func, it's inconvenient to use\r\na partial to wrap an existing retrying sleep function just to get this\r\nbehavior.\r\n\r\nThis patch adds support for a new kwarg called wait_event_func\r\nthat when passed should reference a function to be called\r\nbefore sleeping for another attempt iteration. This function\r\nlooks similar to retrying wait_funcs except its first arg is\r\nthe time to sleep as returned by the current 'wait' function.\r\n\r\nA handful of unit tests are also included."},"comment":{"url":"https://api.github.com/repos/rholder/retrying/issues/comments/224908175","html_url":"https://github.com/rholder/retrying/pull/50#issuecomment-224908175","issue_url":"https://api.github.com/repos/rholder/retrying/issues/50","id":224908175,"user":{"login":"jd","id":2644,"avatar_url":"https://avatars.githubusercontent.com/u/2644?v=3","gravatar_id":"","url":"https://api.github.com/users/jd","html_url":"https://github.com/jd","followers_url":"https://api.github.com/users/jd/followers","following_url":"https://api.github.com/users/jd/following{/other_user}","gists_url":"https://api.github.com/users/jd/gists{/gist_id}","starred_url":"https://api.github.com/users/jd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jd/subscriptions","organizations_url":"https://api.github.com/users/jd/orgs","repos_url":"https://api.github.com/users/jd/repos","events_url":"https://api.github.com/users/jd/events{/privacy}","received_events_url":"https://api.github.com/users/jd/received_events","type":"User","site_admin":false},"created_at":"2016-06-09T14:16:42Z","updated_at":"2016-06-09T14:16:42Z","body":"LGTM, feel free to rebase!"}}
{"actor":{"display_login":"jd"}}