class_docstr: Manage the background execution of callbacks with subprocesses and a diskcache result backend.
class_docstr_tok: ["Manage","the","background","execution","of","callbacks","with","subprocesses","and","a","diskcache","result","backend","."]
code: def get_result(self, key, job):
      # Get result value
      result = self.handle.get(key, self.UNDEFINED)
      if result is self.UNDEFINED:
          return self.UNDEFINED
  
      # Clear result if not caching
      if self.cache_by is None:
          self.clear_cache_entry(key)
      else:
          if self.expire:
              self.handle.touch(key, expire=self.expire)
  
      self.clear_cache_entry(self._make_progress_key(key))
  
      if job:
          self.terminate_job(job)
      return result
  
imports: import traceback
  from contextvars import copy_context
  from .None import BaseLongCallbackManager
  from ..._callback_context import context_value
  from ..._utils import AttributeDict
  from ...exceptions import PreventUpdate
label_desc: Use image node_id 10 for calling the DiskcacheManager obj's underlying member method code with example usage: obj.get_result(key, job) and returns: result, self