{"action":"opened","number":2994,"pull_request":{"url":"https://api.github.com/repos/thewca/worldcubeassociation.org/pulls/2994","id":196799267,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk2Nzk5MjY3","html_url":"https://github.com/thewca/worldcubeassociation.org/pull/2994","diff_url":"https://github.com/thewca/worldcubeassociation.org/pull/2994.diff","patch_url":"https://github.com/thewca/worldcubeassociation.org/pull/2994.patch","issue_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/issues/2994","number":2994,"state":"open","locked":false,"title":"Ignore running jobs when checking for stuck jobs.","user":{"login":"jfly","id":277474,"node_id":"MDQ6VXNlcjI3NzQ3NA==","avatar_url":"https://avatars1.githubusercontent.com/u/277474?v=4","gravatar_id":"","url":"https://api.github.com/users/jfly","html_url":"https://github.com/jfly","followers_url":"https://api.github.com/users/jfly/followers","following_url":"https://api.github.com/users/jfly/following{/other_user}","gists_url":"https://api.github.com/users/jfly/gists{/gist_id}","starred_url":"https://api.github.com/users/jfly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfly/subscriptions","organizations_url":"https://api.github.com/users/jfly/orgs","repos_url":"https://api.github.com/users/jfly/repos","events_url":"https://api.github.com/users/jfly/events{/privacy}","received_events_url":"https://api.github.com/users/jfly/received_events","type":"User","site_admin":false},"body":"Previously, we were just looking at jobs that haven't had a completed\r\n(succeeded OR failed) attempt yet. This included jobs that were\r\ncurrently running. That means that despite us giving jobs 10 minutes of\r\nexecution time, we would start complaining about jobs after they've been\r\nrunning for only 5 minutes.\r\n\r\nUnfortunately, our compute auxiliary data script has started fairly\r\nreliably taking > 5 minutes, so most times it runs, it results in a\r\nwarning on the server-status page that is gone by the time some one\r\nlooks into it. While we should definitely do something to improve the\r\nspeed of the compute auxiliar data script, this change causes us to\r\nignore ongoing jobs when checking for jobs that should have run by now.\r\n\r\nWe will notice if a running job takes more than 10 minutes, delayed job\r\nhas infrastructure to kill the ongoing job and mark it as a failure (see\r\nDelayed::Worker.max_run_time in config/initializers/delayed_job_config.rb).","created_at":"2018-06-22T17:29:57Z","updated_at":"2018-06-22T17:29:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/pulls/2994/commits","review_comments_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/pulls/2994/comments","review_comment_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/pulls/comments{/number}","comments_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/issues/2994/comments","statuses_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/statuses/47d86f41cd7c7e677b4adea14777e0c685c1ec67","head":{"label":"jfly:better-check-for-stuck-jobs","ref":"better-check-for-stuck-jobs","sha":"47d86f41cd7c7e677b4adea14777e0c685c1ec67","user":{"login":"jfly","id":277474,"node_id":"MDQ6VXNlcjI3NzQ3NA==","avatar_url":"https://avatars1.githubusercontent.com/u/277474?v=4","gravatar_id":"","url":"https://api.github.com/users/jfly","html_url":"https://github.com/jfly","followers_url":"https://api.github.com/users/jfly/followers","following_url":"https://api.github.com/users/jfly/following{/other_user}","gists_url":"https://api.github.com/users/jfly/gists{/gist_id}","starred_url":"https://api.github.com/users/jfly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfly/subscriptions","organizations_url":"https://api.github.com/users/jfly/orgs","repos_url":"https://api.github.com/users/jfly/repos","events_url":"https://api.github.com/users/jfly/events{/privacy}","received_events_url":"https://api.github.com/users/jfly/received_events","type":"User","site_admin":false},"repo":{"id":36788277,"node_id":"MDEwOlJlcG9zaXRvcnkzNjc4ODI3Nw==","name":"worldcubeassociation.org","full_name":"jfly/worldcubeassociation.org","owner":{"login":"jfly","id":277474,"node_id":"MDQ6VXNlcjI3NzQ3NA==","avatar_url":"https://avatars1.githubusercontent.com/u/277474?v=4","gravatar_id":"","url":"https://api.github.com/users/jfly","html_url":"https://github.com/jfly","followers_url":"https://api.github.com/users/jfly/followers","following_url":"https://api.github.com/users/jfly/following{/other_user}","gists_url":"https://api.github.com/users/jfly/gists{/gist_id}","starred_url":"https://api.github.com/users/jfly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfly/subscriptions","organizations_url":"https://api.github.com/users/jfly/orgs","repos_url":"https://api.github.com/users/jfly/repos","events_url":"https://api.github.com/users/jfly/events{/privacy}","received_events_url":"https://api.github.com/users/jfly/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jfly/worldcubeassociation.org","description":"All of the code that runs on worldcubeassociation.org","fork":true,"url":"https://api.github.com/repos/jfly/worldcubeassociation.org","forks_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/forks","keys_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/teams","hooks_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/hooks","issue_events_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/issues/events{/number}","events_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/events","assignees_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/assignees{/user}","branches_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/branches{/branch}","tags_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/tags","blobs_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/statuses/{sha}","languages_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/languages","stargazers_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/stargazers","contributors_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/contributors","subscribers_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/subscribers","subscription_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/subscription","commits_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/contents/{+path}","compare_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/merges","archive_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/downloads","issues_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/issues{/number}","pulls_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/pulls{/number}","milestones_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/milestones{/number}","notifications_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/labels{/name}","releases_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/releases{/id}","deployments_url":"https://api.github.com/repos/jfly/worldcubeassociation.org/deployments","created_at":"2015-06-03T07:49:06Z","updated_at":"2017-12-05T23:35:28Z","pushed_at":"2018-06-22T17:29:48Z","git_url":"git://github.com/jfly/worldcubeassociation.org.git","ssh_url":"git@github.com:jfly/worldcubeassociation.org.git","clone_url":"https://github.com/jfly/worldcubeassociation.org.git","svn_url":"https://github.com/jfly/worldcubeassociation.org","homepage":"https://www.worldcubeassociation.org/","size":61139,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"thewca:master","ref":"master","sha":"daa2b91fcdf1797cd204b2574d09cc9e276c3776","user":{"login":"thewca","id":19806436,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5ODA2NDM2","avatar_url":"https://avatars0.githubusercontent.com/u/19806436?v=4","gravatar_id":"","url":"https://api.github.com/users/thewca","html_url":"https://github.com/thewca","followers_url":"https://api.github.com/users/thewca/followers","following_url":"https://api.github.com/users/thewca/following{/other_user}","gists_url":"https://api.github.com/users/thewca/gists{/gist_id}","starred_url":"https://api.github.com/users/thewca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thewca/subscriptions","organizations_url":"https://api.github.com/users/thewca/orgs","repos_url":"https://api.github.com/users/thewca/repos","events_url":"https://api.github.com/users/thewca/events{/privacy}","received_events_url":"https://api.github.com/users/thewca/received_events","type":"Organization","site_admin":false},"repo":{"id":34161579,"node_id":"MDEwOlJlcG9zaXRvcnkzNDE2MTU3OQ==","name":"worldcubeassociation.org","full_name":"thewca/worldcubeassociation.org","owner":{"login":"thewca","id":19806436,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5ODA2NDM2","avatar_url":"https://avatars0.githubusercontent.com/u/19806436?v=4","gravatar_id":"","url":"https://api.github.com/users/thewca","html_url":"https://github.com/thewca","followers_url":"https://api.github.com/users/thewca/followers","following_url":"https://api.github.com/users/thewca/following{/other_user}","gists_url":"https://api.github.com/users/thewca/gists{/gist_id}","starred_url":"https://api.github.com/users/thewca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thewca/subscriptions","organizations_url":"https://api.github.com/users/thewca/orgs","repos_url":"https://api.github.com/users/thewca/repos","events_url":"https://api.github.com/users/thewca/events{/privacy}","received_events_url":"https://api.github.com/users/thewca/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/thewca/worldcubeassociation.org","description":"All of the code that runs on worldcubeassociation.org","fork":false,"url":"https://api.github.com/repos/thewca/worldcubeassociation.org","forks_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/forks","keys_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/teams","hooks_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/hooks","issue_events_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/issues/events{/number}","events_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/events","assignees_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/assignees{/user}","branches_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/branches{/branch}","tags_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/tags","blobs_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/statuses/{sha}","languages_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/languages","stargazers_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/stargazers","contributors_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/contributors","subscribers_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/subscribers","subscription_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/subscription","commits_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/contents/{+path}","compare_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/merges","archive_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/downloads","issues_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/issues{/number}","pulls_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/pulls{/number}","milestones_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/milestones{/number}","notifications_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/labels{/name}","releases_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/releases{/id}","deployments_url":"https://api.github.com/repos/thewca/worldcubeassociation.org/deployments","created_at":"2015-04-18T10:21:53Z","updated_at":"2018-06-22T13:19:46Z","pushed_at":"2018-06-22T13:19:43Z","git_url":"git://github.com/thewca/worldcubeassociation.org.git","ssh_url":"git@github.com:thewca/worldcubeassociation.org.git","clone_url":"https://github.com/thewca/worldcubeassociation.org.git","svn_url":"https://github.com/thewca/worldcubeassociation.org","homepage":"https://www.worldcubeassociation.org/","size":123283,"stargazers_count":75,"watchers_count":75,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":57,"mirror_url":null,"archived":false,"open_issues_count":243,"license":null,"forks":57,"open_issues":243,"watchers":75,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/thewca/worldcubeassociation.org/pulls/2994"},"html":{"href":"https://github.com/thewca/worldcubeassociation.org/pull/2994"},"issue":{"href":"https://api.github.com/repos/thewca/worldcubeassociation.org/issues/2994"},"comments":{"href":"https://api.github.com/repos/thewca/worldcubeassociation.org/issues/2994/comments"},"review_comments":{"href":"https://api.github.com/repos/thewca/worldcubeassociation.org/pulls/2994/comments"},"review_comment":{"href":"https://api.github.com/repos/thewca/worldcubeassociation.org/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/thewca/worldcubeassociation.org/pulls/2994/commits"},"statuses":{"href":"https://api.github.com/repos/thewca/worldcubeassociation.org/statuses/47d86f41cd7c7e677b4adea14777e0c685c1ec67"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":13,"deletions":1,"changed_files":2}}
{"actor":{"display_login":"jfly"}}