Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions airflow/hooks/druid_hook.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,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))
Expand All @@ -95,6 +93,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
Expand Down