{"action":"created","issue":{"url":"https://api.github.com/repos/samphilipd/rihanna/issues/32","repository_url":"https://api.github.com/repos/samphilipd/rihanna","labels_url":"https://api.github.com/repos/samphilipd/rihanna/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/samphilipd/rihanna/issues/32/comments","events_url":"https://api.github.com/repos/samphilipd/rihanna/issues/32/events","html_url":"https://github.com/samphilipd/rihanna/issues/32","id":364034379,"node_id":"MDU6SXNzdWUzNjQwMzQzNzk=","number":32,"title":"Retry strategy","user":{"login":"nicholasjhenry","id":40253,"node_id":"MDQ6VXNlcjQwMjUz","avatar_url":"https://avatars0.githubusercontent.com/u/40253?v=4","gravatar_id":"","url":"https://api.github.com/users/nicholasjhenry","html_url":"https://github.com/nicholasjhenry","followers_url":"https://api.github.com/users/nicholasjhenry/followers","following_url":"https://api.github.com/users/nicholasjhenry/following{/other_user}","gists_url":"https://api.github.com/users/nicholasjhenry/gists{/gist_id}","starred_url":"https://api.github.com/users/nicholasjhenry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicholasjhenry/subscriptions","organizations_url":"https://api.github.com/users/nicholasjhenry/orgs","repos_url":"https://api.github.com/users/nicholasjhenry/repos","events_url":"https://api.github.com/users/nicholasjhenry/events{/privacy}","received_events_url":"https://api.github.com/users/nicholasjhenry/received_events","type":"User","site_admin":false},"labels":[{"id":871323362,"node_id":"MDU6TGFiZWw4NzEzMjMzNjI=","url":"https://api.github.com/repos/samphilipd/rihanna/labels/enhancement","name":"enhancement","color":"a2eeef","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-09-26T13:37:06Z","updated_at":"2018-09-28T20:04:35Z","closed_at":null,"author_association":"NONE","body":"> The second way is to implement the Rihanna.Job behaviour and define the perform/1 function. Implementing this behaviour allows you to **define retry strategies**, show custom error messages on failure etc. See the docs for more details.\r\n\r\nCould you please describe how to handle retries? Using the `Rihanna.Job` behaviour. Do you schedule another job with the same params within the current job? If I wanted to have a global retry, is there any reason why I couldn't use a process to monitor the jobs table for failed jobs and retry them using `Rihanna.Job.retry/1`? Thank you for your help and this library. "},"comment":{"url":"https://api.github.com/repos/samphilipd/rihanna/issues/comments/425550650","html_url":"https://github.com/samphilipd/rihanna/issues/32#issuecomment-425550650","issue_url":"https://api.github.com/repos/samphilipd/rihanna/issues/32","id":425550650,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTU1MDY1MA==","user":{"login":"samphilipd","id":4147639,"node_id":"MDQ6VXNlcjQxNDc2Mzk=","avatar_url":"https://avatars3.githubusercontent.com/u/4147639?v=4","gravatar_id":"","url":"https://api.github.com/users/samphilipd","html_url":"https://github.com/samphilipd","followers_url":"https://api.github.com/users/samphilipd/followers","following_url":"https://api.github.com/users/samphilipd/following{/other_user}","gists_url":"https://api.github.com/users/samphilipd/gists{/gist_id}","starred_url":"https://api.github.com/users/samphilipd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samphilipd/subscriptions","organizations_url":"https://api.github.com/users/samphilipd/orgs","repos_url":"https://api.github.com/users/samphilipd/repos","events_url":"https://api.github.com/users/samphilipd/events{/privacy}","received_events_url":"https://api.github.com/users/samphilipd/received_events","type":"User","site_admin":false},"created_at":"2018-09-28T20:04:35Z","updated_at":"2018-09-28T20:04:35Z","author_association":"OWNER","body":"How about [Rihanna.retry/1](https://hexdocs.pm/rihanna/Rihanna.html#retry/1)?"}}
{"actor":{"display_login":"samphilipd"}}