{"action":"created","comment":{"url":"https://api.github.com/repos/kraih/minion/pulls/comments/30413225","id":30413225,"diff_hunk":"@@ -120,13 +120,16 @@ sub repair {\n sub reset { $_[0]->db and delete($_[0]->{db})->clear }\n \n sub retry_job {","path":"lib/Minion/Backend/File.pm","position":3,"original_position":3,"commit_id":"d384e39c49e894c4d41ba455bb792353a2e7c49a","original_commit_id":"d384e39c49e894c4d41ba455bb792353a2e7c49a","user":{"login":"kraih","id":30094,"avatar_url":"https://avatars.githubusercontent.com/u/30094?v=3","gravatar_id":"","url":"https://api.github.com/users/kraih","html_url":"https://github.com/kraih","followers_url":"https://api.github.com/users/kraih/followers","following_url":"https://api.github.com/users/kraih/following{/other_user}","gists_url":"https://api.github.com/users/kraih/gists{/gist_id}","starred_url":"https://api.github.com/users/kraih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kraih/subscriptions","organizations_url":"https://api.github.com/users/kraih/orgs","repos_url":"https://api.github.com/users/kraih/repos","events_url":"https://api.github.com/users/kraih/events{/privacy}","received_events_url":"https://api.github.com/users/kraih/received_events","type":"User","site_admin":false},"body":"The documentation for this method has not been updated.","created_at":"2015-05-15T14:35:01Z","updated_at":"2015-05-15T14:35:01Z","html_url":"https://github.com/kraih/minion/pull/11#discussion_r30413225","pull_request_url":"https://api.github.com/repos/kraih/minion/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/kraih/minion/pulls/comments/30413225"},"html":{"href":"https://github.com/kraih/minion/pull/11#discussion_r30413225"},"pull_request":{"href":"https://api.github.com/repos/kraih/minion/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/kraih/minion/pulls/11","id":35516084,"html_url":"https://github.com/kraih/minion/pull/11","diff_url":"https://github.com/kraih/minion/pull/11.diff","patch_url":"https://github.com/kraih/minion/pull/11.patch","issue_url":"https://api.github.com/repos/kraih/minion/issues/11","number":11,"state":"open","locked":false,"title":"optionally delay jobs when retrying them","user":{"login":"kwakwaversal","id":1439360,"avatar_url":"https://avatars.githubusercontent.com/u/1439360?v=3","gravatar_id":"","url":"https://api.github.com/users/kwakwaversal","html_url":"https://github.com/kwakwaversal","followers_url":"https://api.github.com/users/kwakwaversal/followers","following_url":"https://api.github.com/users/kwakwaversal/following{/other_user}","gists_url":"https://api.github.com/users/kwakwaversal/gists{/gist_id}","starred_url":"https://api.github.com/users/kwakwaversal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwakwaversal/subscriptions","organizations_url":"https://api.github.com/users/kwakwaversal/orgs","repos_url":"https://api.github.com/users/kwakwaversal/repos","events_url":"https://api.github.com/users/kwakwaversal/events{/privacy}","received_events_url":"https://api.github.com/users/kwakwaversal/received_events","type":"User","site_admin":false},"body":"I am using minion jobs to insert data into a database which needs to survive the database not always being available. When the database isn't available, the jobs are retried straight away without the ability (that I could find) to delay them from being retried too often.\r\n\r\nI've added the option `delay` to `job->retry` to delay failed jobs.\r\n\r\nI have a requirement to use the delay for several future jobs, so hope this gets considered.\r\n\r\nCheers for writing and supporting Minion et. al.","created_at":"2015-05-15T14:10:13Z","updated_at":"2015-05-15T14:35:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"955fe7e12a0887ea67f55e910124cad69d5c2460","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kraih/minion/pulls/11/commits","review_comments_url":"https://api.github.com/repos/kraih/minion/pulls/11/comments","review_comment_url":"https://api.github.com/repos/kraih/minion/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kraih/minion/issues/11/comments","statuses_url":"https://api.github.com/repos/kraih/minion/statuses/d384e39c49e894c4d41ba455bb792353a2e7c49a","head":{"label":"kwakwaversal:master","ref":"master","sha":"d384e39c49e894c4d41ba455bb792353a2e7c49a","user":{"login":"kwakwaversal","id":1439360,"avatar_url":"https://avatars.githubusercontent.com/u/1439360?v=3","gravatar_id":"","url":"https://api.github.com/users/kwakwaversal","html_url":"https://github.com/kwakwaversal","followers_url":"https://api.github.com/users/kwakwaversal/followers","following_url":"https://api.github.com/users/kwakwaversal/following{/other_user}","gists_url":"https://api.github.com/users/kwakwaversal/gists{/gist_id}","starred_url":"https://api.github.com/users/kwakwaversal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwakwaversal/subscriptions","organizations_url":"https://api.github.com/users/kwakwaversal/orgs","repos_url":"https://api.github.com/users/kwakwaversal/repos","events_url":"https://api.github.com/users/kwakwaversal/events{/privacy}","received_events_url":"https://api.github.com/users/kwakwaversal/received_events","type":"User","site_admin":false},"repo":{"id":35675269,"name":"minion","full_name":"kwakwaversal/minion","owner":{"login":"kwakwaversal","id":1439360,"avatar_url":"https://avatars.githubusercontent.com/u/1439360?v=3","gravatar_id":"","url":"https://api.github.com/users/kwakwaversal","html_url":"https://github.com/kwakwaversal","followers_url":"https://api.github.com/users/kwakwaversal/followers","following_url":"https://api.github.com/users/kwakwaversal/following{/other_user}","gists_url":"https://api.github.com/users/kwakwaversal/gists{/gist_id}","starred_url":"https://api.github.com/users/kwakwaversal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwakwaversal/subscriptions","organizations_url":"https://api.github.com/users/kwakwaversal/orgs","repos_url":"https://api.github.com/users/kwakwaversal/repos","events_url":"https://api.github.com/users/kwakwaversal/events{/privacy}","received_events_url":"https://api.github.com/users/kwakwaversal/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kwakwaversal/minion","description":"Perl job queue","fork":true,"url":"https://api.github.com/repos/kwakwaversal/minion","forks_url":"https://api.github.com/repos/kwakwaversal/minion/forks","keys_url":"https://api.github.com/repos/kwakwaversal/minion/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kwakwaversal/minion/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kwakwaversal/minion/teams","hooks_url":"https://api.github.com/repos/kwakwaversal/minion/hooks","issue_events_url":"https://api.github.com/repos/kwakwaversal/minion/issues/events{/number}","events_url":"https://api.github.com/repos/kwakwaversal/minion/events","assignees_url":"https://api.github.com/repos/kwakwaversal/minion/assignees{/user}","branches_url":"https://api.github.com/repos/kwakwaversal/minion/branches{/branch}","tags_url":"https://api.github.com/repos/kwakwaversal/minion/tags","blobs_url":"https://api.github.com/repos/kwakwaversal/minion/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kwakwaversal/minion/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kwakwaversal/minion/git/refs{/sha}","trees_url":"https://api.github.com/repos/kwakwaversal/minion/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kwakwaversal/minion/statuses/{sha}","languages_url":"https://api.github.com/repos/kwakwaversal/minion/languages","stargazers_url":"https://api.github.com/repos/kwakwaversal/minion/stargazers","contributors_url":"https://api.github.com/repos/kwakwaversal/minion/contributors","subscribers_url":"https://api.github.com/repos/kwakwaversal/minion/subscribers","subscription_url":"https://api.github.com/repos/kwakwaversal/minion/subscription","commits_url":"https://api.github.com/repos/kwakwaversal/minion/commits{/sha}","git_commits_url":"https://api.github.com/repos/kwakwaversal/minion/git/commits{/sha}","comments_url":"https://api.github.com/repos/kwakwaversal/minion/comments{/number}","issue_comment_url":"https://api.github.com/repos/kwakwaversal/minion/issues/comments{/number}","contents_url":"https://api.github.com/repos/kwakwaversal/minion/contents/{+path}","compare_url":"https://api.github.com/repos/kwakwaversal/minion/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kwakwaversal/minion/merges","archive_url":"https://api.github.com/repos/kwakwaversal/minion/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kwakwaversal/minion/downloads","issues_url":"https://api.github.com/repos/kwakwaversal/minion/issues{/number}","pulls_url":"https://api.github.com/repos/kwakwaversal/minion/pulls{/number}","milestones_url":"https://api.github.com/repos/kwakwaversal/minion/milestones{/number}","notifications_url":"https://api.github.com/repos/kwakwaversal/minion/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kwakwaversal/minion/labels{/name}","releases_url":"https://api.github.com/repos/kwakwaversal/minion/releases{/id}","created_at":"2015-05-15T13:24:15Z","updated_at":"2015-05-15T13:24:15Z","pushed_at":"2015-05-15T13:32:13Z","git_url":"git://github.com/kwakwaversal/minion.git","ssh_url":"git@github.com:kwakwaversal/minion.git","clone_url":"https://github.com/kwakwaversal/minion.git","svn_url":"https://github.com/kwakwaversal/minion","homepage":"https://metacpan.org/release/Minion","size":1682,"stargazers_count":0,"watchers_count":0,"language":"Perl","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"kraih:master","ref":"master","sha":"4a51de002b504d057cec027e011444745b4a4463","user":{"login":"kraih","id":30094,"avatar_url":"https://avatars.githubusercontent.com/u/30094?v=3","gravatar_id":"","url":"https://api.github.com/users/kraih","html_url":"https://github.com/kraih","followers_url":"https://api.github.com/users/kraih/followers","following_url":"https://api.github.com/users/kraih/following{/other_user}","gists_url":"https://api.github.com/users/kraih/gists{/gist_id}","starred_url":"https://api.github.com/users/kraih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kraih/subscriptions","organizations_url":"https://api.github.com/users/kraih/orgs","repos_url":"https://api.github.com/users/kraih/repos","events_url":"https://api.github.com/users/kraih/events{/privacy}","received_events_url":"https://api.github.com/users/kraih/received_events","type":"User","site_admin":false},"repo":{"id":18187848,"name":"minion","full_name":"kraih/minion","owner":{"login":"kraih","id":30094,"avatar_url":"https://avatars.githubusercontent.com/u/30094?v=3","gravatar_id":"","url":"https://api.github.com/users/kraih","html_url":"https://github.com/kraih","followers_url":"https://api.github.com/users/kraih/followers","following_url":"https://api.github.com/users/kraih/following{/other_user}","gists_url":"https://api.github.com/users/kraih/gists{/gist_id}","starred_url":"https://api.github.com/users/kraih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kraih/subscriptions","organizations_url":"https://api.github.com/users/kraih/orgs","repos_url":"https://api.github.com/users/kraih/repos","events_url":"https://api.github.com/users/kraih/events{/privacy}","received_events_url":"https://api.github.com/users/kraih/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kraih/minion","description":"Perl job queue","fork":false,"url":"https://api.github.com/repos/kraih/minion","forks_url":"https://api.github.com/repos/kraih/minion/forks","keys_url":"https://api.github.com/repos/kraih/minion/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kraih/minion/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kraih/minion/teams","hooks_url":"https://api.github.com/repos/kraih/minion/hooks","issue_events_url":"https://api.github.com/repos/kraih/minion/issues/events{/number}","events_url":"https://api.github.com/repos/kraih/minion/events","assignees_url":"https://api.github.com/repos/kraih/minion/assignees{/user}","branches_url":"https://api.github.com/repos/kraih/minion/branches{/branch}","tags_url":"https://api.github.com/repos/kraih/minion/tags","blobs_url":"https://api.github.com/repos/kraih/minion/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kraih/minion/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kraih/minion/git/refs{/sha}","trees_url":"https://api.github.com/repos/kraih/minion/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kraih/minion/statuses/{sha}","languages_url":"https://api.github.com/repos/kraih/minion/languages","stargazers_url":"https://api.github.com/repos/kraih/minion/stargazers","contributors_url":"https://api.github.com/repos/kraih/minion/contributors","subscribers_url":"https://api.github.com/repos/kraih/minion/subscribers","subscription_url":"https://api.github.com/repos/kraih/minion/subscription","commits_url":"https://api.github.com/repos/kraih/minion/commits{/sha}","git_commits_url":"https://api.github.com/repos/kraih/minion/git/commits{/sha}","comments_url":"https://api.github.com/repos/kraih/minion/comments{/number}","issue_comment_url":"https://api.github.com/repos/kraih/minion/issues/comments{/number}","contents_url":"https://api.github.com/repos/kraih/minion/contents/{+path}","compare_url":"https://api.github.com/repos/kraih/minion/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kraih/minion/merges","archive_url":"https://api.github.com/repos/kraih/minion/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kraih/minion/downloads","issues_url":"https://api.github.com/repos/kraih/minion/issues{/number}","pulls_url":"https://api.github.com/repos/kraih/minion/pulls{/number}","milestones_url":"https://api.github.com/repos/kraih/minion/milestones{/number}","notifications_url":"https://api.github.com/repos/kraih/minion/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kraih/minion/labels{/name}","releases_url":"https://api.github.com/repos/kraih/minion/releases{/id}","created_at":"2014-03-27T19:05:37Z","updated_at":"2015-05-07T09:13:28Z","pushed_at":"2015-05-15T14:10:13Z","git_url":"git://github.com/kraih/minion.git","ssh_url":"git@github.com:kraih/minion.git","clone_url":"https://github.com/kraih/minion.git","svn_url":"https://github.com/kraih/minion","homepage":"https://metacpan.org/release/Minion","size":1682,"stargazers_count":50,"watchers_count":50,"language":"Perl","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":1,"forks":9,"open_issues":1,"watchers":50,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kraih/minion/pulls/11"},"html":{"href":"https://github.com/kraih/minion/pull/11"},"issue":{"href":"https://api.github.com/repos/kraih/minion/issues/11"},"comments":{"href":"https://api.github.com/repos/kraih/minion/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/kraih/minion/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/kraih/minion/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kraih/minion/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/kraih/minion/statuses/d384e39c49e894c4d41ba455bb792353a2e7c49a"}}}}