Skip to content

Commit cf103fc

Browse files
committed
fix context in diskcache manager
1 parent 79f6bab commit cf103fc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dash/background_callback/managers/diskcache_manager.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import traceback
2-
from contextvars import copy_context
2+
from contextvars import Context
33
import asyncio
44
from functools import partial
55

@@ -227,7 +227,8 @@ def _set_progress(progress_value):
227227
def _set_props(_id, props):
228228
cache.set(f"{result_key}-set_props", {_id: props})
229229

230-
ctx = copy_context()
230+
# Create a minimal context to avoid copying ThreadPoolExecutor from parent
231+
ctx = Context()
231232

232233
def run():
233234
c = AttributeDict(**context)

0 commit comments

Comments
 (0)