You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2018/08/06 10:37:36 UTC
[GitHub] Fokko closed pull request #3707: [AIRFLOW-2860] DruidHook: time variable is not updated correctly when…
Fokko closed pull request #3707: [AIRFLOW-2860] DruidHook: time variable is not updated correctly when…
URL: https://github.com/apache/incubator-airflow/pull/3707
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/airflow/hooks/druid_hook.py b/airflow/hooks/druid_hook.py
index 53607f0e7a..e5fb6a7a26 100644
--- a/airflow/hooks/druid_hook.py
+++ b/airflow/hooks/druid_hook.py
@@ -81,8 +81,6 @@ def submit_indexing_job(self, json_index_spec):
self.log.info("Job still running for %s seconds...", sec)
- sec = sec + 1
-
if self.max_ingestion_time and sec > self.max_ingestion_time:
# ensure that the job gets killed if the max ingestion time is exceeded
requests.post("{0}/{1}/shutdown".format(url, druid_task_id))
@@ -91,6 +89,8 @@ def submit_indexing_job(self, json_index_spec):
time.sleep(self.timeout)
+ sec = sec + self.timeout
+
status = req_status.json()['status']['status']
if status == 'RUNNING':
running = True
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services