Skip to content

Commit

Permalink
[druid] Fixing issue 3894 multi-processing w/ Gunicorn (apache#3895)
Browse files Browse the repository at this point in the history
  • Loading branch information
john-bodley authored and mistercrunch committed Nov 19, 2017
1 parent 96c8c5a commit 295f615
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions superset/connectors/druid/models.py
Expand Up @@ -4,7 +4,7 @@
from datetime import datetime, timedelta
import json
import logging
from multiprocessing import Pool
from multiprocessing.pool import ThreadPool

from dateutil.parser import parse as dparse
from flask import escape, Markup
Expand Down Expand Up @@ -157,7 +157,7 @@ def refresh(self, datasource_names, merge_flag, refreshAll):
session.flush()

# Prepare multithreaded executation
pool = Pool()
pool = ThreadPool()
ds_refresh = list(ds_map.values())
metadata = pool.map(_fetch_metadata_for, ds_refresh)
pool.close()
Expand Down

0 comments on commit 295f615

Please sign in to comment.