{"action":"closed","number":359,"pull_request":{"url":"https://api.github.com/repos/OptimalBits/bull/pulls/359","id":89480842,"html_url":"https://github.com/OptimalBits/bull/pull/359","diff_url":"https://github.com/OptimalBits/bull/pull/359.diff","patch_url":"https://github.com/OptimalBits/bull/pull/359.patch","issue_url":"https://api.github.com/repos/OptimalBits/bull/issues/359","number":359,"state":"closed","locked":false,"title":"Rewrite the handling of process stalled jobs to be atomic so it doesn…","user":{"login":"bradvogel","id":821706,"avatar_url":"https://avatars.githubusercontent.com/u/821706?v=3","gravatar_id":"","url":"https://api.github.com/users/bradvogel","html_url":"https://github.com/bradvogel","followers_url":"https://api.github.com/users/bradvogel/followers","following_url":"https://api.github.com/users/bradvogel/following{/other_user}","gists_url":"https://api.github.com/users/bradvogel/gists{/gist_id}","starred_url":"https://api.github.com/users/bradvogel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradvogel/subscriptions","organizations_url":"https://api.github.com/users/bradvogel/orgs","repos_url":"https://api.github.com/users/bradvogel/repos","events_url":"https://api.github.com/users/bradvogel/events{/privacy}","received_events_url":"https://api.github.com/users/bradvogel/received_events","type":"User","site_admin":false},"body":"…'t double-process jobs. See https://github.com/OptimalBits/bull/issues/356 for more on how this can happen.\r\n\r\nAdditionally, this addresses long-standing issue where a job can be considered \"stalled\" even though it was just moved to active and before a lock could be obtained by the worker that moved it (https://github.com/OptimalBits/bull/issues/258), by waiting a grace period (with a default of LOCK_RENEW_TIME) before considering a job as possibly stalled. This gives the (real) worker time to acquire its lock after moving it to active.","created_at":"2016-10-15T04:05:45Z","updated_at":"2016-10-26T07:30:23Z","closed_at":"2016-10-26T07:30:23Z","merged_at":"2016-10-26T07:30:22Z","merge_commit_sha":"69b965b51eed13248a3e197f3e09856f4289a009","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/OptimalBits/bull/pulls/359/commits","review_comments_url":"https://api.github.com/repos/OptimalBits/bull/pulls/359/comments","review_comment_url":"https://api.github.com/repos/OptimalBits/bull/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OptimalBits/bull/issues/359/comments","statuses_url":"https://api.github.com/repos/OptimalBits/bull/statuses/9fdea1674a30b52025ac39130ab0369532691227","head":{"label":"mixmaxhq:better-stalled-job-processing","ref":"better-stalled-job-processing","sha":"9fdea1674a30b52025ac39130ab0369532691227","user":{"login":"mixmaxhq","id":7530142,"avatar_url":"https://avatars.githubusercontent.com/u/7530142?v=3","gravatar_id":"","url":"https://api.github.com/users/mixmaxhq","html_url":"https://github.com/mixmaxhq","followers_url":"https://api.github.com/users/mixmaxhq/followers","following_url":"https://api.github.com/users/mixmaxhq/following{/other_user}","gists_url":"https://api.github.com/users/mixmaxhq/gists{/gist_id}","starred_url":"https://api.github.com/users/mixmaxhq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mixmaxhq/subscriptions","organizations_url":"https://api.github.com/users/mixmaxhq/orgs","repos_url":"https://api.github.com/users/mixmaxhq/repos","events_url":"https://api.github.com/users/mixmaxhq/events{/privacy}","received_events_url":"https://api.github.com/users/mixmaxhq/received_events","type":"Organization","site_admin":false},"repo":{"id":52402151,"name":"bull","full_name":"mixmaxhq/bull","owner":{"login":"mixmaxhq","id":7530142,"avatar_url":"https://avatars.githubusercontent.com/u/7530142?v=3","gravatar_id":"","url":"https://api.github.com/users/mixmaxhq","html_url":"https://github.com/mixmaxhq","followers_url":"https://api.github.com/users/mixmaxhq/followers","following_url":"https://api.github.com/users/mixmaxhq/following{/other_user}","gists_url":"https://api.github.com/users/mixmaxhq/gists{/gist_id}","starred_url":"https://api.github.com/users/mixmaxhq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mixmaxhq/subscriptions","organizations_url":"https://api.github.com/users/mixmaxhq/orgs","repos_url":"https://api.github.com/users/mixmaxhq/repos","events_url":"https://api.github.com/users/mixmaxhq/events{/privacy}","received_events_url":"https://api.github.com/users/mixmaxhq/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mixmaxhq/bull","description":"A NodeJS persistent job and message queue based on Redis","fork":true,"url":"https://api.github.com/repos/mixmaxhq/bull","forks_url":"https://api.github.com/repos/mixmaxhq/bull/forks","keys_url":"https://api.github.com/repos/mixmaxhq/bull/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mixmaxhq/bull/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mixmaxhq/bull/teams","hooks_url":"https://api.github.com/repos/mixmaxhq/bull/hooks","issue_events_url":"https://api.github.com/repos/mixmaxhq/bull/issues/events{/number}","events_url":"https://api.github.com/repos/mixmaxhq/bull/events","assignees_url":"https://api.github.com/repos/mixmaxhq/bull/assignees{/user}","branches_url":"https://api.github.com/repos/mixmaxhq/bull/branches{/branch}","tags_url":"https://api.github.com/repos/mixmaxhq/bull/tags","blobs_url":"https://api.github.com/repos/mixmaxhq/bull/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mixmaxhq/bull/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mixmaxhq/bull/git/refs{/sha}","trees_url":"https://api.github.com/repos/mixmaxhq/bull/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mixmaxhq/bull/statuses/{sha}","languages_url":"https://api.github.com/repos/mixmaxhq/bull/languages","stargazers_url":"https://api.github.com/repos/mixmaxhq/bull/stargazers","contributors_url":"https://api.github.com/repos/mixmaxhq/bull/contributors","subscribers_url":"https://api.github.com/repos/mixmaxhq/bull/subscribers","subscription_url":"https://api.github.com/repos/mixmaxhq/bull/subscription","commits_url":"https://api.github.com/repos/mixmaxhq/bull/commits{/sha}","git_commits_url":"https://api.github.com/repos/mixmaxhq/bull/git/commits{/sha}","comments_url":"https://api.github.com/repos/mixmaxhq/bull/comments{/number}","issue_comment_url":"https://api.github.com/repos/mixmaxhq/bull/issues/comments{/number}","contents_url":"https://api.github.com/repos/mixmaxhq/bull/contents/{+path}","compare_url":"https://api.github.com/repos/mixmaxhq/bull/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mixmaxhq/bull/merges","archive_url":"https://api.github.com/repos/mixmaxhq/bull/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mixmaxhq/bull/downloads","issues_url":"https://api.github.com/repos/mixmaxhq/bull/issues{/number}","pulls_url":"https://api.github.com/repos/mixmaxhq/bull/pulls{/number}","milestones_url":"https://api.github.com/repos/mixmaxhq/bull/milestones{/number}","notifications_url":"https://api.github.com/repos/mixmaxhq/bull/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mixmaxhq/bull/labels{/name}","releases_url":"https://api.github.com/repos/mixmaxhq/bull/releases{/id}","deployments_url":"https://api.github.com/repos/mixmaxhq/bull/deployments","created_at":"2016-02-24T00:35:03Z","updated_at":"2016-02-24T00:35:04Z","pushed_at":"2016-10-24T19:13:19Z","git_url":"git://github.com/mixmaxhq/bull.git","ssh_url":"git@github.com:mixmaxhq/bull.git","clone_url":"https://github.com/mixmaxhq/bull.git","svn_url":"https://github.com/mixmaxhq/bull","homepage":"","size":791,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"OptimalBits:master","ref":"master","sha":"7b7d04c8f41ea8f57a773f408de69e59302d4981","user":{"login":"OptimalBits","id":945399,"avatar_url":"https://avatars.githubusercontent.com/u/945399?v=3","gravatar_id":"","url":"https://api.github.com/users/OptimalBits","html_url":"https://github.com/OptimalBits","followers_url":"https://api.github.com/users/OptimalBits/followers","following_url":"https://api.github.com/users/OptimalBits/following{/other_user}","gists_url":"https://api.github.com/users/OptimalBits/gists{/gist_id}","starred_url":"https://api.github.com/users/OptimalBits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OptimalBits/subscriptions","organizations_url":"https://api.github.com/users/OptimalBits/orgs","repos_url":"https://api.github.com/users/OptimalBits/repos","events_url":"https://api.github.com/users/OptimalBits/events{/privacy}","received_events_url":"https://api.github.com/users/OptimalBits/received_events","type":"Organization","site_admin":false},"repo":{"id":10999165,"name":"bull","full_name":"OptimalBits/bull","owner":{"login":"OptimalBits","id":945399,"avatar_url":"https://avatars.githubusercontent.com/u/945399?v=3","gravatar_id":"","url":"https://api.github.com/users/OptimalBits","html_url":"https://github.com/OptimalBits","followers_url":"https://api.github.com/users/OptimalBits/followers","following_url":"https://api.github.com/users/OptimalBits/following{/other_user}","gists_url":"https://api.github.com/users/OptimalBits/gists{/gist_id}","starred_url":"https://api.github.com/users/OptimalBits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OptimalBits/subscriptions","organizations_url":"https://api.github.com/users/OptimalBits/orgs","repos_url":"https://api.github.com/users/OptimalBits/repos","events_url":"https://api.github.com/users/OptimalBits/events{/privacy}","received_events_url":"https://api.github.com/users/OptimalBits/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OptimalBits/bull","description":"A NodeJS persistent job and message queue based on Redis","fork":false,"url":"https://api.github.com/repos/OptimalBits/bull","forks_url":"https://api.github.com/repos/OptimalBits/bull/forks","keys_url":"https://api.github.com/repos/OptimalBits/bull/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OptimalBits/bull/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OptimalBits/bull/teams","hooks_url":"https://api.github.com/repos/OptimalBits/bull/hooks","issue_events_url":"https://api.github.com/repos/OptimalBits/bull/issues/events{/number}","events_url":"https://api.github.com/repos/OptimalBits/bull/events","assignees_url":"https://api.github.com/repos/OptimalBits/bull/assignees{/user}","branches_url":"https://api.github.com/repos/OptimalBits/bull/branches{/branch}","tags_url":"https://api.github.com/repos/OptimalBits/bull/tags","blobs_url":"https://api.github.com/repos/OptimalBits/bull/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OptimalBits/bull/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OptimalBits/bull/git/refs{/sha}","trees_url":"https://api.github.com/repos/OptimalBits/bull/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OptimalBits/bull/statuses/{sha}","languages_url":"https://api.github.com/repos/OptimalBits/bull/languages","stargazers_url":"https://api.github.com/repos/OptimalBits/bull/stargazers","contributors_url":"https://api.github.com/repos/OptimalBits/bull/contributors","subscribers_url":"https://api.github.com/repos/OptimalBits/bull/subscribers","subscription_url":"https://api.github.com/repos/OptimalBits/bull/subscription","commits_url":"https://api.github.com/repos/OptimalBits/bull/commits{/sha}","git_commits_url":"https://api.github.com/repos/OptimalBits/bull/git/commits{/sha}","comments_url":"https://api.github.com/repos/OptimalBits/bull/comments{/number}","issue_comment_url":"https://api.github.com/repos/OptimalBits/bull/issues/comments{/number}","contents_url":"https://api.github.com/repos/OptimalBits/bull/contents/{+path}","compare_url":"https://api.github.com/repos/OptimalBits/bull/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OptimalBits/bull/merges","archive_url":"https://api.github.com/repos/OptimalBits/bull/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OptimalBits/bull/downloads","issues_url":"https://api.github.com/repos/OptimalBits/bull/issues{/number}","pulls_url":"https://api.github.com/repos/OptimalBits/bull/pulls{/number}","milestones_url":"https://api.github.com/repos/OptimalBits/bull/milestones{/number}","notifications_url":"https://api.github.com/repos/OptimalBits/bull/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OptimalBits/bull/labels{/name}","releases_url":"https://api.github.com/repos/OptimalBits/bull/releases{/id}","deployments_url":"https://api.github.com/repos/OptimalBits/bull/deployments","created_at":"2013-06-27T14:35:35Z","updated_at":"2016-10-24T22:50:03Z","pushed_at":"2016-10-26T07:30:22Z","git_url":"git://github.com/OptimalBits/bull.git","ssh_url":"git@github.com:OptimalBits/bull.git","clone_url":"https://github.com/OptimalBits/bull.git","svn_url":"https://github.com/OptimalBits/bull","homepage":"","size":875,"stargazers_count":1163,"watchers_count":1163,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":130,"mirror_url":null,"open_issues_count":88,"forks":130,"open_issues":88,"watchers":1163,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OptimalBits/bull/pulls/359"},"html":{"href":"https://github.com/OptimalBits/bull/pull/359"},"issue":{"href":"https://api.github.com/repos/OptimalBits/bull/issues/359"},"comments":{"href":"https://api.github.com/repos/OptimalBits/bull/issues/359/comments"},"review_comments":{"href":"https://api.github.com/repos/OptimalBits/bull/pulls/359/comments"},"review_comment":{"href":"https://api.github.com/repos/OptimalBits/bull/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OptimalBits/bull/pulls/359/commits"},"statuses":{"href":"https://api.github.com/repos/OptimalBits/bull/statuses/9fdea1674a30b52025ac39130ab0369532691227"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"manast","id":95200,"avatar_url":"https://avatars.githubusercontent.com/u/95200?v=3","gravatar_id":"","url":"https://api.github.com/users/manast","html_url":"https://github.com/manast","followers_url":"https://api.github.com/users/manast/followers","following_url":"https://api.github.com/users/manast/following{/other_user}","gists_url":"https://api.github.com/users/manast/gists{/gist_id}","starred_url":"https://api.github.com/users/manast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manast/subscriptions","organizations_url":"https://api.github.com/users/manast/orgs","repos_url":"https://api.github.com/users/manast/repos","events_url":"https://api.github.com/users/manast/events{/privacy}","received_events_url":"https://api.github.com/users/manast/received_events","type":"User","site_admin":false},"comments":22,"review_comments":13,"commits":16,"additions":139,"deletions":66,"changed_files":5}}
{"actor":{"display_login":"manast"}}