mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
fix(celery): Reset DB connection pools for forked worker processes (#13350)
* Reset sqlalchemy connection pool on celery process fork * Fix race condition with async chart loading state * pylint: ignore * prettier
This commit is contained in:
@@ -40,7 +40,9 @@ const initState = getInitialState(bootstrapData);
|
||||
const asyncEventMiddleware = initAsyncEvents({
|
||||
config: bootstrapData.common.conf,
|
||||
getPendingComponents: ({ charts }) =>
|
||||
Object.values(charts).filter(c => c.chartStatus === 'loading'),
|
||||
Object.values(charts).filter(
|
||||
c => c.chartStatus === 'loading' && c.asyncJobId !== undefined,
|
||||
),
|
||||
successAction: (componentId, componentData) =>
|
||||
actions.chartUpdateSucceeded(componentData, componentId),
|
||||
errorAction: (componentId, response) =>
|
||||
|
||||
Reference in New Issue
Block a user