{"action":"created","comment":{"url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/pulls/comments/53056179","id":53056179,"diff_hunk":"@@ -0,0 +1,25 @@\n+module SidekiqUniqueJobs\n+  class QueueLockTimeoutCalculator\n+    include TimeoutCalculator\n+\n+    def self.for_item(item)\n+      new(item)\n+    end\n+\n+    def initialize(item)\n+      @item = item\n+    end\n+\n+    def seconds\n+      time_until_scheduled + queue_lock_expiration\n+    end\n+\n+    def queue_lock_expiration","path":"lib/sidekiq_unique_jobs/queue_lock_timeout_calculator.rb","position":17,"original_position":17,"commit_id":"dfc8f397d634f17f4a91717ad0781dedd9b102ca","original_commit_id":"dfc8f397d634f17f4a91717ad0781dedd9b102ca","user":{"login":"Slania","id":855842,"avatar_url":"https://avatars.githubusercontent.com/u/855842?v=3","gravatar_id":"","url":"https://api.github.com/users/Slania","html_url":"https://github.com/Slania","followers_url":"https://api.github.com/users/Slania/followers","following_url":"https://api.github.com/users/Slania/following{/other_user}","gists_url":"https://api.github.com/users/Slania/gists{/gist_id}","starred_url":"https://api.github.com/users/Slania/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Slania/subscriptions","organizations_url":"https://api.github.com/users/Slania/orgs","repos_url":"https://api.github.com/users/Slania/repos","events_url":"https://api.github.com/users/Slania/events{/privacy}","received_events_url":"https://api.github.com/users/Slania/received_events","type":"User","site_admin":false},"body":"Seems fair to me :)","created_at":"2016-02-16T18:38:59Z","updated_at":"2016-02-16T18:38:59Z","html_url":"https://github.com/mhenrixon/sidekiq-unique-jobs/pull/164#discussion_r53056179","pull_request_url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/pulls/164","_links":{"self":{"href":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/pulls/comments/53056179"},"html":{"href":"https://github.com/mhenrixon/sidekiq-unique-jobs/pull/164#discussion_r53056179"},"pull_request":{"href":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/pulls/164"}}},"pull_request":{"url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/pulls/164","id":59314929,"html_url":"https://github.com/mhenrixon/sidekiq-unique-jobs/pull/164","diff_url":"https://github.com/mhenrixon/sidekiq-unique-jobs/pull/164.diff","patch_url":"https://github.com/mhenrixon/sidekiq-unique-jobs/pull/164.patch","issue_url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/issues/164","number":164,"state":"open","locked":false,"title":"Run lock timeout configurable","user":{"login":"Slania","id":855842,"avatar_url":"https://avatars.githubusercontent.com/u/855842?v=3","gravatar_id":"","url":"https://api.github.com/users/Slania","html_url":"https://github.com/Slania","followers_url":"https://api.github.com/users/Slania/followers","following_url":"https://api.github.com/users/Slania/following{/other_user}","gists_url":"https://api.github.com/users/Slania/gists{/gist_id}","starred_url":"https://api.github.com/users/Slania/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Slania/subscriptions","organizations_url":"https://api.github.com/users/Slania/orgs","repos_url":"https://api.github.com/users/Slania/repos","events_url":"https://api.github.com/users/Slania/events{/privacy}","received_events_url":"https://api.github.com/users/Slania/received_events","type":"User","site_admin":false},"body":"```\r\nclass ConfigurableRunLockTimeoutWorker\r\n  include Sidekiq::Worker\r\n  sidekiq_options :queue => 'background', :run_lock_expiration => 60 * 3\r\nend\r\n```","created_at":"2016-02-15T02:20:46Z","updated_at":"2016-02-16T18:38:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d7114f4a9a6a056ab09816d583b654a90d983226","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/pulls/164/commits","review_comments_url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/pulls/164/comments","review_comment_url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/issues/164/comments","statuses_url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/statuses/dfc8f397d634f17f4a91717ad0781dedd9b102ca","head":{"label":"Slania:configurable_run_lock_timeout","ref":"configurable_run_lock_timeout","sha":"dfc8f397d634f17f4a91717ad0781dedd9b102ca","user":{"login":"Slania","id":855842,"avatar_url":"https://avatars.githubusercontent.com/u/855842?v=3","gravatar_id":"","url":"https://api.github.com/users/Slania","html_url":"https://github.com/Slania","followers_url":"https://api.github.com/users/Slania/followers","following_url":"https://api.github.com/users/Slania/following{/other_user}","gists_url":"https://api.github.com/users/Slania/gists{/gist_id}","starred_url":"https://api.github.com/users/Slania/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Slania/subscriptions","organizations_url":"https://api.github.com/users/Slania/orgs","repos_url":"https://api.github.com/users/Slania/repos","events_url":"https://api.github.com/users/Slania/events{/privacy}","received_events_url":"https://api.github.com/users/Slania/received_events","type":"User","site_admin":false},"repo":{"id":51624818,"name":"sidekiq-unique-jobs","full_name":"Slania/sidekiq-unique-jobs","owner":{"login":"Slania","id":855842,"avatar_url":"https://avatars.githubusercontent.com/u/855842?v=3","gravatar_id":"","url":"https://api.github.com/users/Slania","html_url":"https://github.com/Slania","followers_url":"https://api.github.com/users/Slania/followers","following_url":"https://api.github.com/users/Slania/following{/other_user}","gists_url":"https://api.github.com/users/Slania/gists{/gist_id}","starred_url":"https://api.github.com/users/Slania/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Slania/subscriptions","organizations_url":"https://api.github.com/users/Slania/orgs","repos_url":"https://api.github.com/users/Slania/repos","events_url":"https://api.github.com/users/Slania/events{/privacy}","received_events_url":"https://api.github.com/users/Slania/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Slania/sidekiq-unique-jobs","description":"The missing unique jobs in sidekiq","fork":true,"url":"https://api.github.com/repos/Slania/sidekiq-unique-jobs","forks_url":"https://api.github.com/repos/Slania/sidekiq-unique-jobs/forks","keys_url":"https://api.github.com/repos/Slania/sidekiq-unique-jobs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Slania/sidekiq-unique-jobs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Slania/sidekiq-unique-jobs/teams","hooks_url":"https://api.github.com/repos/Slania/sidekiq-unique-jobs/hooks","issue_events_url":"https://api.github.com/repos/Slania/sidekiq-unique-jobs/issues/events{/number}","events_url":"https://api.github.com/repos/Slania/sidekiq-unique-jobs/events","assignees_url":"https://api.github.com/repos/Slania/sidekiq-unique-jobs/assignees{/user}","branches_url":"https://api.github.com/repos/Slania/sidekiq-unique-jobs/branches{/branch}","tags_url":"https://api.github.com/repos/Slania/sidekiq-unique-jobs/tags","blobs_url":"https://api.github.com/repos/Slania/sidekiq-unique-jobs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Slania/sidekiq-unique-jobs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Slania/sidekiq-unique-jobs/git/refs{/sha}","trees_url":"https://api.github.com/repos/Slania/sidekiq-unique-jobs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Slania/sidekiq-unique-jobs/statuses/{sha}","languages_url":"https://api.github.com/repos/Slania/sidekiq-unique-jobs/languages","stargazers_url":"https://api.github.com/repos/Slania/sidekiq-unique-jobs/stargazers","contributors_url":"https://api.github.com/repos/Slania/sidekiq-unique-jobs/contributors","subscribers_url":"https://api.github.com/repos/Slania/sidekiq-unique-jobs/subscribers","subscription_url":"https://api.github.com/repos/Slania/sidekiq-unique-jobs/subscription","commits_url":"https://api.github.com/repos/Slania/sidekiq-unique-jobs/commits{/sha}","git_commits_url":"https://api.github.com/repos/Slania/sidekiq-unique-jobs/git/commits{/sha}","comments_url":"https://api.github.com/repos/Slania/sidekiq-unique-jobs/comments{/number}","issue_comment_url":"https://api.github.com/repos/Slania/sidekiq-unique-jobs/issues/comments{/number}","contents_url":"https://api.github.com/repos/Slania/sidekiq-unique-jobs/contents/{+path}","compare_url":"https://api.github.com/repos/Slania/sidekiq-unique-jobs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Slania/sidekiq-unique-jobs/merges","archive_url":"https://api.github.com/repos/Slania/sidekiq-unique-jobs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Slania/sidekiq-unique-jobs/downloads","issues_url":"https://api.github.com/repos/Slania/sidekiq-unique-jobs/issues{/number}","pulls_url":"https://api.github.com/repos/Slania/sidekiq-unique-jobs/pulls{/number}","milestones_url":"https://api.github.com/repos/Slania/sidekiq-unique-jobs/milestones{/number}","notifications_url":"https://api.github.com/repos/Slania/sidekiq-unique-jobs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Slania/sidekiq-unique-jobs/labels{/name}","releases_url":"https://api.github.com/repos/Slania/sidekiq-unique-jobs/releases{/id}","deployments_url":"https://api.github.com/repos/Slania/sidekiq-unique-jobs/deployments","created_at":"2016-02-13T00:16:27Z","updated_at":"2016-02-13T00:16:28Z","pushed_at":"2016-02-16T17:58:44Z","git_url":"git://github.com/Slania/sidekiq-unique-jobs.git","ssh_url":"git@github.com:Slania/sidekiq-unique-jobs.git","clone_url":"https://github.com/Slania/sidekiq-unique-jobs.git","svn_url":"https://github.com/Slania/sidekiq-unique-jobs","homepage":null,"size":395,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"mhenrixon:master","ref":"master","sha":"700a56a1c97ef547975bdfca0e3ee46e7c6bf4d4","user":{"login":"mhenrixon","id":106795,"avatar_url":"https://avatars.githubusercontent.com/u/106795?v=3","gravatar_id":"","url":"https://api.github.com/users/mhenrixon","html_url":"https://github.com/mhenrixon","followers_url":"https://api.github.com/users/mhenrixon/followers","following_url":"https://api.github.com/users/mhenrixon/following{/other_user}","gists_url":"https://api.github.com/users/mhenrixon/gists{/gist_id}","starred_url":"https://api.github.com/users/mhenrixon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhenrixon/subscriptions","organizations_url":"https://api.github.com/users/mhenrixon/orgs","repos_url":"https://api.github.com/users/mhenrixon/repos","events_url":"https://api.github.com/users/mhenrixon/events{/privacy}","received_events_url":"https://api.github.com/users/mhenrixon/received_events","type":"User","site_admin":false},"repo":{"id":5188602,"name":"sidekiq-unique-jobs","full_name":"mhenrixon/sidekiq-unique-jobs","owner":{"login":"mhenrixon","id":106795,"avatar_url":"https://avatars.githubusercontent.com/u/106795?v=3","gravatar_id":"","url":"https://api.github.com/users/mhenrixon","html_url":"https://github.com/mhenrixon","followers_url":"https://api.github.com/users/mhenrixon/followers","following_url":"https://api.github.com/users/mhenrixon/following{/other_user}","gists_url":"https://api.github.com/users/mhenrixon/gists{/gist_id}","starred_url":"https://api.github.com/users/mhenrixon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhenrixon/subscriptions","organizations_url":"https://api.github.com/users/mhenrixon/orgs","repos_url":"https://api.github.com/users/mhenrixon/repos","events_url":"https://api.github.com/users/mhenrixon/events{/privacy}","received_events_url":"https://api.github.com/users/mhenrixon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mhenrixon/sidekiq-unique-jobs","description":"The missing unique jobs in sidekiq","fork":false,"url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs","forks_url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/forks","keys_url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/teams","hooks_url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/hooks","issue_events_url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/issues/events{/number}","events_url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/events","assignees_url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/assignees{/user}","branches_url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/branches{/branch}","tags_url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/tags","blobs_url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/git/refs{/sha}","trees_url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/statuses/{sha}","languages_url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/languages","stargazers_url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/stargazers","contributors_url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/contributors","subscribers_url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/subscribers","subscription_url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/subscription","commits_url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/commits{/sha}","git_commits_url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/git/commits{/sha}","comments_url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/comments{/number}","issue_comment_url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/issues/comments{/number}","contents_url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/contents/{+path}","compare_url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/merges","archive_url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/downloads","issues_url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/issues{/number}","pulls_url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/pulls{/number}","milestones_url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/milestones{/number}","notifications_url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/labels{/name}","releases_url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/releases{/id}","deployments_url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/deployments","created_at":"2012-07-26T06:22:39Z","updated_at":"2016-02-16T10:58:03Z","pushed_at":"2016-02-16T17:58:44Z","git_url":"git://github.com/mhenrixon/sidekiq-unique-jobs.git","ssh_url":"git@github.com:mhenrixon/sidekiq-unique-jobs.git","clone_url":"https://github.com/mhenrixon/sidekiq-unique-jobs.git","svn_url":"https://github.com/mhenrixon/sidekiq-unique-jobs","homepage":null,"size":439,"stargazers_count":272,"watchers_count":272,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":96,"mirror_url":null,"open_issues_count":6,"forks":96,"open_issues":6,"watchers":272,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/pulls/164"},"html":{"href":"https://github.com/mhenrixon/sidekiq-unique-jobs/pull/164"},"issue":{"href":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/issues/164"},"comments":{"href":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/issues/164/comments"},"review_comments":{"href":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/pulls/164/comments"},"review_comment":{"href":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/pulls/164/commits"},"statuses":{"href":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/statuses/dfc8f397d634f17f4a91717ad0781dedd9b102ca"}}}}