Skip to content
Prev Previous commit
Next Next commit
fix context in diskcache manager
  • Loading branch information
T4rk1n committed Jul 8, 2025
commit cf103fcea310e2902b7f77c5c5a51231cb1df4a6
5 changes: 3 additions & 2 deletions dash/background_callback/managers/diskcache_manager.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import traceback
from contextvars import copy_context
from contextvars import Context
import asyncio
from functools import partial

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

ctx = copy_context()
# Create a minimal context to avoid copying ThreadPoolExecutor from parent
ctx = Context()

def run():
c = AttributeDict(**context)
Expand Down
Loading