MCPcopy Index your code
hub / github.com/plotly/dash / TestDiskCacheManager

Class TestDiskCacheManager

tests/background_callback/utils.py:17–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15
16
17class TestDiskCacheManager(DiskcacheManager):
18 def __init__(self, cache=None, cache_by=None, expire=None):
19 super().__init__(cache=cache, cache_by=cache_by, expire=expire)
20 self.running_jobs = []
21
22 def call_job_fn(
23 self,
24 key,
25 job_fn,
26 args,
27 context,
28 ):
29 pid = super().call_job_fn(key, job_fn, args, context)
30 self.running_jobs.append(pid)
31 return pid
32
33
34def get_background_callback_manager():

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…