From commits-return-611-archive-asf-public=cust-asf.ponee.io@superset.incubator.apache.org Thu Feb 8 06:29:36 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id CE32618064F for ; Thu, 8 Feb 2018 06:29:36 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id BDCD5160C5C; Thu, 8 Feb 2018 05:29:36 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0ED74160C5B for ; Thu, 8 Feb 2018 06:29:35 +0100 (CET) Received: (qmail 30523 invoked by uid 500); 8 Feb 2018 05:29:35 -0000 Mailing-List: contact commits-help@superset.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@superset.incubator.apache.org Delivered-To: mailing list commits@superset.incubator.apache.org Received: (qmail 30514 invoked by uid 99); 8 Feb 2018 05:29:35 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Feb 2018 05:29:35 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 650DB82360; Thu, 8 Feb 2018 05:29:34 +0000 (UTC) Date: Thu, 08 Feb 2018 05:29:34 +0000 To: "commits@superset.apache.org" Subject: [incubator-superset] branch master updated: Superset issue #4323 (#4353) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <151806777425.22057.18139926547590471683@gitbox.apache.org> From: maximebeauchemin@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: incubator-superset X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 0480fa0121decad414c9b2faacd2941d953e58fb X-Git-Newrev: 387bf766d34de4659a1d73511720682f30ef2a99 X-Git-Rev: 387bf766d34de4659a1d73511720682f30ef2a99 X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated This is an automated email from the ASF dual-hosted git repository. maximebeauchemin pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-superset.git The following commit(s) were added to refs/heads/master by this push: new 387bf76 Superset issue #4323 (#4353) 387bf76 is described below commit 387bf766d34de4659a1d73511720682f30ef2a99 Author: Maciej BryƄski AuthorDate: Thu Feb 8 06:29:31 2018 +0100 Superset issue #4323 (#4353) Adding configurable poll interval for Hive Engine --- superset/config.py | 3 +++ superset/db_engine_specs.py | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/superset/config.py b/superset/config.py index c2da1db..48c893a 100644 --- a/superset/config.py +++ b/superset/config.py @@ -359,6 +359,9 @@ BLUEPRINTS = [] # into a proxied one TRACKING_URL_TRANSFORMER = lambda x: x # noqa: E731 +# Interval between consecutive polls when using Hive Engine +HIVE_POLL_INTERVAL = 5 + try: if CONFIG_PATH_ENV_VAR in os.environ: # Explicitly import config module that is not in pythonpath; useful diff --git a/superset/db_engine_specs.py b/superset/db_engine_specs.py index 112b3ba..b961c03 100644 --- a/superset/db_engine_specs.py +++ b/superset/db_engine_specs.py @@ -42,6 +42,7 @@ from superset.utils import QueryStatus, SupersetTemplateException config = app.config tracking_url_trans = conf.get('TRACKING_URL_TRANSFORMER') +hive_poll_interval = conf.get('HIVE_POLL_INTERVAL') Grain = namedtuple('Grain', 'name label function') @@ -993,7 +994,7 @@ class HiveEngineSpec(PrestoEngineSpec): last_log_line = len(log_lines) if needs_commit: session.commit() - time.sleep(5) + time.sleep(hive_poll_interval) polled = cursor.poll() @classmethod -- To stop receiving notification emails like this one, please contact maximebeauchemin@apache.org.