{"action":"reopened","number":3570,"pull_request":{"url":"https://api.github.com/repos/apache/incubator-airflow/pulls/3570","id":198798981,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4Nzk4OTgx","html_url":"https://github.com/apache/incubator-airflow/pull/3570","diff_url":"https://github.com/apache/incubator-airflow/pull/3570.diff","patch_url":"https://github.com/apache/incubator-airflow/pull/3570.patch","issue_url":"https://api.github.com/repos/apache/incubator-airflow/issues/3570","number":3570,"state":"open","locked":false,"title":"[AIRFLOW-2709] Improve error handling in Databricks hook","user":{"login":"betabandido","id":5481662,"node_id":"MDQ6VXNlcjU0ODE2NjI=","avatar_url":"https://avatars2.githubusercontent.com/u/5481662?v=4","gravatar_id":"","url":"https://api.github.com/users/betabandido","html_url":"https://github.com/betabandido","followers_url":"https://api.github.com/users/betabandido/followers","following_url":"https://api.github.com/users/betabandido/following{/other_user}","gists_url":"https://api.github.com/users/betabandido/gists{/gist_id}","starred_url":"https://api.github.com/users/betabandido/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/betabandido/subscriptions","organizations_url":"https://api.github.com/users/betabandido/orgs","repos_url":"https://api.github.com/users/betabandido/repos","events_url":"https://api.github.com/users/betabandido/events{/privacy}","received_events_url":"https://api.github.com/users/betabandido/received_events","type":"User","site_admin":false},"body":"### JIRA\r\n- [x] My PR addresses the following [Airflow JIRA](https://issues.apache.org/jira/browse/AIRFLOW-2709) issues and references them in the PR title.\r\n\r\n\r\n### Description\r\n- [x] This PR enhances the error handling in the Databricks hook (and in its corresponding operator). The PR adds the capability to wait between requests, and it adds support to handle a TEMPORARILY_UNAVAILABLE error. This error is neither a connection nor timeout error, and thus it is not correctly handled by the current hook implementation.\r\n\r\n\r\n### Tests\r\n- [x] My PR adds a unit test to specifically test the new functionality in the hook, and modifies existing tests in the operator to ensure the hook is initialized correctly.","created_at":"2018-07-02T21:53:01Z","updated_at":"2018-08-24T14:00:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8f73d67fda68b4a7b14c3481bf97589db028584d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/apache/incubator-airflow/pulls/3570/commits","review_comments_url":"https://api.github.com/repos/apache/incubator-airflow/pulls/3570/comments","review_comment_url":"https://api.github.com/repos/apache/incubator-airflow/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/incubator-airflow/issues/3570/comments","statuses_url":"https://api.github.com/repos/apache/incubator-airflow/statuses/b19de034f04072075a531d249d62adf7cb805cf3","head":{"label":"betabandido:feature/databricks-retry-delay","ref":"feature/databricks-retry-delay","sha":"b19de034f04072075a531d249d62adf7cb805cf3","user":{"login":"betabandido","id":5481662,"node_id":"MDQ6VXNlcjU0ODE2NjI=","avatar_url":"https://avatars2.githubusercontent.com/u/5481662?v=4","gravatar_id":"","url":"https://api.github.com/users/betabandido","html_url":"https://github.com/betabandido","followers_url":"https://api.github.com/users/betabandido/followers","following_url":"https://api.github.com/users/betabandido/following{/other_user}","gists_url":"https://api.github.com/users/betabandido/gists{/gist_id}","starred_url":"https://api.github.com/users/betabandido/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/betabandido/subscriptions","organizations_url":"https://api.github.com/users/betabandido/orgs","repos_url":"https://api.github.com/users/betabandido/repos","events_url":"https://api.github.com/users/betabandido/events{/privacy}","received_events_url":"https://api.github.com/users/betabandido/received_events","type":"User","site_admin":false},"repo":{"id":139466512,"node_id":"MDEwOlJlcG9zaXRvcnkxMzk0NjY1MTI=","name":"incubator-airflow","full_name":"betabandido/incubator-airflow","owner":{"login":"betabandido","id":5481662,"node_id":"MDQ6VXNlcjU0ODE2NjI=","avatar_url":"https://avatars2.githubusercontent.com/u/5481662?v=4","gravatar_id":"","url":"https://api.github.com/users/betabandido","html_url":"https://github.com/betabandido","followers_url":"https://api.github.com/users/betabandido/followers","following_url":"https://api.github.com/users/betabandido/following{/other_user}","gists_url":"https://api.github.com/users/betabandido/gists{/gist_id}","starred_url":"https://api.github.com/users/betabandido/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/betabandido/subscriptions","organizations_url":"https://api.github.com/users/betabandido/orgs","repos_url":"https://api.github.com/users/betabandido/repos","events_url":"https://api.github.com/users/betabandido/events{/privacy}","received_events_url":"https://api.github.com/users/betabandido/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/betabandido/incubator-airflow","description":"Apache Airflow (Incubating)","fork":true,"url":"https://api.github.com/repos/betabandido/incubator-airflow","forks_url":"https://api.github.com/repos/betabandido/incubator-airflow/forks","keys_url":"https://api.github.com/repos/betabandido/incubator-airflow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/betabandido/incubator-airflow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/betabandido/incubator-airflow/teams","hooks_url":"https://api.github.com/repos/betabandido/incubator-airflow/hooks","issue_events_url":"https://api.github.com/repos/betabandido/incubator-airflow/issues/events{/number}","events_url":"https://api.github.com/repos/betabandido/incubator-airflow/events","assignees_url":"https://api.github.com/repos/betabandido/incubator-airflow/assignees{/user}","branches_url":"https://api.github.com/repos/betabandido/incubator-airflow/branches{/branch}","tags_url":"https://api.github.com/repos/betabandido/incubator-airflow/tags","blobs_url":"https://api.github.com/repos/betabandido/incubator-airflow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/betabandido/incubator-airflow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/betabandido/incubator-airflow/git/refs{/sha}","trees_url":"https://api.github.com/repos/betabandido/incubator-airflow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/betabandido/incubator-airflow/statuses/{sha}","languages_url":"https://api.github.com/repos/betabandido/incubator-airflow/languages","stargazers_url":"https://api.github.com/repos/betabandido/incubator-airflow/stargazers","contributors_url":"https://api.github.com/repos/betabandido/incubator-airflow/contributors","subscribers_url":"https://api.github.com/repos/betabandido/incubator-airflow/subscribers","subscription_url":"https://api.github.com/repos/betabandido/incubator-airflow/subscription","commits_url":"https://api.github.com/repos/betabandido/incubator-airflow/commits{/sha}","git_commits_url":"https://api.github.com/repos/betabandido/incubator-airflow/git/commits{/sha}","comments_url":"https://api.github.com/repos/betabandido/incubator-airflow/comments{/number}","issue_comment_url":"https://api.github.com/repos/betabandido/incubator-airflow/issues/comments{/number}","contents_url":"https://api.github.com/repos/betabandido/incubator-airflow/contents/{+path}","compare_url":"https://api.github.com/repos/betabandido/incubator-airflow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/betabandido/incubator-airflow/merges","archive_url":"https://api.github.com/repos/betabandido/incubator-airflow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/betabandido/incubator-airflow/downloads","issues_url":"https://api.github.com/repos/betabandido/incubator-airflow/issues{/number}","pulls_url":"https://api.github.com/repos/betabandido/incubator-airflow/pulls{/number}","milestones_url":"https://api.github.com/repos/betabandido/incubator-airflow/milestones{/number}","notifications_url":"https://api.github.com/repos/betabandido/incubator-airflow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/betabandido/incubator-airflow/labels{/name}","releases_url":"https://api.github.com/repos/betabandido/incubator-airflow/releases{/id}","deployments_url":"https://api.github.com/repos/betabandido/incubator-airflow/deployments","created_at":"2018-07-02T16:18:51Z","updated_at":"2018-07-02T16:18:56Z","pushed_at":"2018-08-24T13:47:11Z","git_url":"git://github.com/betabandido/incubator-airflow.git","ssh_url":"git@github.com:betabandido/incubator-airflow.git","clone_url":"https://github.com/betabandido/incubator-airflow.git","svn_url":"https://github.com/betabandido/incubator-airflow","homepage":"","size":21925,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"fc10f7e0a04145a0b2f31f8d0990bbe900b4e8a2","user":{"login":"apache","id":47359,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3MzU5","avatar_url":"https://avatars0.githubusercontent.com/u/47359?v=4","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":33884891,"node_id":"MDEwOlJlcG9zaXRvcnkzMzg4NDg5MQ==","name":"incubator-airflow","full_name":"apache/incubator-airflow","owner":{"login":"apache","id":47359,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3MzU5","avatar_url":"https://avatars0.githubusercontent.com/u/47359?v=4","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/incubator-airflow","description":"Apache Airflow (Incubating)","fork":false,"url":"https://api.github.com/repos/apache/incubator-airflow","forks_url":"https://api.github.com/repos/apache/incubator-airflow/forks","keys_url":"https://api.github.com/repos/apache/incubator-airflow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/incubator-airflow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/incubator-airflow/teams","hooks_url":"https://api.github.com/repos/apache/incubator-airflow/hooks","issue_events_url":"https://api.github.com/repos/apache/incubator-airflow/issues/events{/number}","events_url":"https://api.github.com/repos/apache/incubator-airflow/events","assignees_url":"https://api.github.com/repos/apache/incubator-airflow/assignees{/user}","branches_url":"https://api.github.com/repos/apache/incubator-airflow/branches{/branch}","tags_url":"https://api.github.com/repos/apache/incubator-airflow/tags","blobs_url":"https://api.github.com/repos/apache/incubator-airflow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/incubator-airflow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/incubator-airflow/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/incubator-airflow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/incubator-airflow/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/incubator-airflow/languages","stargazers_url":"https://api.github.com/repos/apache/incubator-airflow/stargazers","contributors_url":"https://api.github.com/repos/apache/incubator-airflow/contributors","subscribers_url":"https://api.github.com/repos/apache/incubator-airflow/subscribers","subscription_url":"https://api.github.com/repos/apache/incubator-airflow/subscription","commits_url":"https://api.github.com/repos/apache/incubator-airflow/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/incubator-airflow/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/incubator-airflow/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/incubator-airflow/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/incubator-airflow/contents/{+path}","compare_url":"https://api.github.com/repos/apache/incubator-airflow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/incubator-airflow/merges","archive_url":"https://api.github.com/repos/apache/incubator-airflow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/incubator-airflow/downloads","issues_url":"https://api.github.com/repos/apache/incubator-airflow/issues{/number}","pulls_url":"https://api.github.com/repos/apache/incubator-airflow/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/incubator-airflow/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/incubator-airflow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/incubator-airflow/labels{/name}","releases_url":"https://api.github.com/repos/apache/incubator-airflow/releases{/id}","deployments_url":"https://api.github.com/repos/apache/incubator-airflow/deployments","created_at":"2015-04-13T18:04:58Z","updated_at":"2018-08-24T13:35:52Z","pushed_at":"2018-08-24T13:47:16Z","git_url":"git://github.com/apache/incubator-airflow.git","ssh_url":"git@github.com:apache/incubator-airflow.git","clone_url":"https://github.com/apache/incubator-airflow.git","svn_url":"https://github.com/apache/incubator-airflow","homepage":"https://airflow.apache.org","size":22049,"stargazers_count":9129,"watchers_count":9129,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3058,"mirror_url":null,"archived":false,"open_issues_count":346,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":3058,"open_issues":346,"watchers":9129,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/incubator-airflow/pulls/3570"},"html":{"href":"https://github.com/apache/incubator-airflow/pull/3570"},"issue":{"href":"https://api.github.com/repos/apache/incubator-airflow/issues/3570"},"comments":{"href":"https://api.github.com/repos/apache/incubator-airflow/issues/3570/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/incubator-airflow/pulls/3570/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/incubator-airflow/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/incubator-airflow/pulls/3570/commits"},"statuses":{"href":"https://api.github.com/repos/apache/incubator-airflow/statuses/b19de034f04072075a531d249d62adf7cb805cf3"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":3,"review_comments":14,"maintainer_can_modify":true,"commits":6,"additions":157,"deletions":49,"changed_files":4}}
{"actor":{"display_login":"betabandido"}}