{"action":"created","issue":{"url":"https://api.github.com/repos/n1analytics/encoding-service/issues/26","repository_url":"https://api.github.com/repos/n1analytics/encoding-service","labels_url":"https://api.github.com/repos/n1analytics/encoding-service/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/n1analytics/encoding-service/issues/26/comments","events_url":"https://api.github.com/repos/n1analytics/encoding-service/issues/26/events","html_url":"https://github.com/n1analytics/encoding-service/pull/26","id":378591893,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI5MjU5NTQ0","number":26,"title":"Optional delay before dbinit","user":{"login":"hardbyte","id":855189,"node_id":"MDQ6VXNlcjg1NTE4OQ==","avatar_url":"https://avatars0.githubusercontent.com/u/855189?v=4","gravatar_id":"","url":"https://api.github.com/users/hardbyte","html_url":"https://github.com/hardbyte","followers_url":"https://api.github.com/users/hardbyte/followers","following_url":"https://api.github.com/users/hardbyte/following{/other_user}","gists_url":"https://api.github.com/users/hardbyte/gists{/gist_id}","starred_url":"https://api.github.com/users/hardbyte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hardbyte/subscriptions","organizations_url":"https://api.github.com/users/hardbyte/orgs","repos_url":"https://api.github.com/users/hardbyte/repos","events_url":"https://api.github.com/users/hardbyte/events{/privacy}","received_events_url":"https://api.github.com/users/hardbyte/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-08T06:08:43Z","updated_at":"2018-11-08T06:12:14Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/n1analytics/encoding-service/pulls/26","html_url":"https://github.com/n1analytics/encoding-service/pull/26","diff_url":"https://github.com/n1analytics/encoding-service/pull/26.diff","patch_url":"https://github.com/n1analytics/encoding-service/pull/26.patch"},"body":"While testing the k8s deployment of the encoding service I noticed that sometimes the database isn't provisioned because the init_db job runs before the database has its volumes in order.\r\n\r\nThis (hack) just adds an optional configurable delay (default to 1s normally and 60 s for k8s)"},"comment":{"url":"https://api.github.com/repos/n1analytics/encoding-service/issues/comments/436884721","html_url":"https://github.com/n1analytics/encoding-service/pull/26#issuecomment-436884721","issue_url":"https://api.github.com/repos/n1analytics/encoding-service/issues/26","id":436884721,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNjg4NDcyMQ==","user":{"login":"nbgl","id":12507513,"node_id":"MDQ6VXNlcjEyNTA3NTEz","avatar_url":"https://avatars1.githubusercontent.com/u/12507513?v=4","gravatar_id":"","url":"https://api.github.com/users/nbgl","html_url":"https://github.com/nbgl","followers_url":"https://api.github.com/users/nbgl/followers","following_url":"https://api.github.com/users/nbgl/following{/other_user}","gists_url":"https://api.github.com/users/nbgl/gists{/gist_id}","starred_url":"https://api.github.com/users/nbgl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nbgl/subscriptions","organizations_url":"https://api.github.com/users/nbgl/orgs","repos_url":"https://api.github.com/users/nbgl/repos","events_url":"https://api.github.com/users/nbgl/events{/privacy}","received_events_url":"https://api.github.com/users/nbgl/received_events","type":"User","site_admin":false},"created_at":"2018-11-08T06:12:14Z","updated_at":"2018-11-08T06:12:14Z","author_association":"MEMBER","body":"We *can* do this. But would it not be easier to just wait a second before calling `database.py init`?"}}
{"actor":{"display_login":"nbgl"}}