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 4bfe08d [druid] Fixing issue 3894 multi-processing w/ Gunicorn
(#3895)
4bfe08d is described below
commit 4bfe08d7c36c54af117e8e5c0eb88bb007f5378c
Author: John Bodley <[email protected]>
AuthorDate: Sat Nov 18 21:40:40 2017 -0800
[druid] Fixing issue 3894 multi-processing w/ Gunicorn (#3895)
---
superset/connectors/druid/models.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/superset/connectors/druid/models.py
b/superset/connectors/druid/models.py
index 6bf39f2..d19a8f0 100644
--- a/superset/connectors/druid/models.py
+++ b/superset/connectors/druid/models.py
@@ -4,7 +4,7 @@ from copy import deepcopy
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
@@ -157,7 +157,7 @@ class DruidCluster(Model, AuditMixinNullable):
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()
--
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].