{"action":"created","issue":{"url":"https://api.github.com/repos/timofurrer/minion-ci/issues/15","repository_url":"https://api.github.com/repos/timofurrer/minion-ci","labels_url":"https://api.github.com/repos/timofurrer/minion-ci/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/timofurrer/minion-ci/issues/15/comments","events_url":"https://api.github.com/repos/timofurrer/minion-ci/issues/15/events","html_url":"https://github.com/timofurrer/minion-ci/pull/15","id":196223272,"number":15,"title":"handle mongodb connection error","user":{"login":"rjrhaverkamp","id":20729073,"avatar_url":"https://avatars.githubusercontent.com/u/20729073?v=3","gravatar_id":"","url":"https://api.github.com/users/rjrhaverkamp","html_url":"https://github.com/rjrhaverkamp","followers_url":"https://api.github.com/users/rjrhaverkamp/followers","following_url":"https://api.github.com/users/rjrhaverkamp/following{/other_user}","gists_url":"https://api.github.com/users/rjrhaverkamp/gists{/gist_id}","starred_url":"https://api.github.com/users/rjrhaverkamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjrhaverkamp/subscriptions","organizations_url":"https://api.github.com/users/rjrhaverkamp/orgs","repos_url":"https://api.github.com/users/rjrhaverkamp/repos","events_url":"https://api.github.com/users/rjrhaverkamp/events{/privacy}","received_events_url":"https://api.github.com/users/rjrhaverkamp/received_events","type":"User","site_admin":false},"labels":[{"id":337224994,"url":"https://api.github.com/repos/timofurrer/minion-ci/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-12-17T13:56:16Z","updated_at":"2016-12-27T10:57:12Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/timofurrer/minion-ci/pulls/15","html_url":"https://github.com/timofurrer/minion-ci/pull/15","diff_url":"https://github.com/timofurrer/minion-ci/pull/15.diff","patch_url":"https://github.com/timofurrer/minion-ci/pull/15.patch"},"body":"as mentioned in issue #9 here is a possible solution.\r\n\r\nI have some problems with it, because it takes 30 seconds(standard pymongo timeout) before we can discover the error. To solve that we would need to change the flask_pymongo code to take an timeout arg. \r\n\r\nThe code only handles an reconnect error, but I tested it multiple times and after 30 seconds or so it throws returns the \"Can't connect to mongodb, please.....\". \r\n\r\nI really don't like the time we have to wait before we discover the issue. I will do some tests with manually trying to connect with pymongo at the start of the app and see if that is a better solution.\r\n\r\nThink we should consider this as work in progress."},"comment":{"url":"https://api.github.com/repos/timofurrer/minion-ci/issues/comments/269310615","html_url":"https://github.com/timofurrer/minion-ci/pull/15#issuecomment-269310615","issue_url":"https://api.github.com/repos/timofurrer/minion-ci/issues/15","id":269310615,"user":{"login":"rjrhaverkamp","id":20729073,"avatar_url":"https://avatars.githubusercontent.com/u/20729073?v=3","gravatar_id":"","url":"https://api.github.com/users/rjrhaverkamp","html_url":"https://github.com/rjrhaverkamp","followers_url":"https://api.github.com/users/rjrhaverkamp/followers","following_url":"https://api.github.com/users/rjrhaverkamp/following{/other_user}","gists_url":"https://api.github.com/users/rjrhaverkamp/gists{/gist_id}","starred_url":"https://api.github.com/users/rjrhaverkamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjrhaverkamp/subscriptions","organizations_url":"https://api.github.com/users/rjrhaverkamp/orgs","repos_url":"https://api.github.com/users/rjrhaverkamp/repos","events_url":"https://api.github.com/users/rjrhaverkamp/events{/privacy}","received_events_url":"https://api.github.com/users/rjrhaverkamp/received_events","type":"User","site_admin":false},"created_at":"2016-12-27T10:57:12Z","updated_at":"2016-12-27T10:57:12Z","body":"Hi @timofurrer \r\n\r\nthis should do."}}
{"actor":{"display_login":"rjrhaverkamp"}}