{"action":"created","issue":{"url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/issues/164","repository_url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs","labels_url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/issues/164/labels{/name}","comments_url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/issues/164/comments","events_url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/issues/164/events","html_url":"https://github.com/mhenrixon/sidekiq-unique-jobs/pull/164","id":133606593,"number":164,"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},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-15T02:20:46Z","updated_at":"2016-02-15T02:25:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/pulls/164","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"},"body":"```\r\nclass ConfigurableRunLockTimeoutWorker\r\n  include Sidekiq::Worker\r\n  sidekiq_options :queue => 'background', :run_lock_expiration => 60 * 3\r\nend\r\n```"},"comment":{"url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/issues/comments/184032438","html_url":"https://github.com/mhenrixon/sidekiq-unique-jobs/pull/164#issuecomment-184032438","issue_url":"https://api.github.com/repos/mhenrixon/sidekiq-unique-jobs/issues/164","id":184032438,"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},"created_at":"2016-02-15T02:25:36Z","updated_at":"2016-02-15T02:25:36Z","body":"We use sidekiq jobs to do things like send out emails through slow APIs. With batching on our end, their end, XML processing etc., it is actually very common for some of our workers to take a couple of minutes or more to send out a large batch (~4000) emails.\r\n\r\nRight now, the run_lock is hardcoded to expire in 60seconds unless the lease is renewed. This PR makes it possible to configure the expiration time."}}