class_docstr: Manage background execution of callbacks with a celery queue.
class_docstr_tok: ["Manage","background","execution","of","callbacks","with","a","celery","queue","."]
code: def get_result(self, key, job):
      # Get result value
      result = self.handle.backend.get(key)
      if result is None:
          return self.UNDEFINED
  
      result = json.loads(result)
  
      # Clear result if not caching
      if self.cache_by is None:
          self.clear_cache_entry(key)
      else:
          if self.expire:
              # Set/update expiration time
              self.handle.backend.expire(key, self.expire)
      self.clear_cache_entry(self._make_progress_key(key))
  
      self.terminate_job(job)
      return result
  
imports: import json
  import traceback
  from contextvars import copy_context
  from _plotly_utils.utils import PlotlyJSONEncoder
  from dash._callback_context import context_value
  from dash._utils import AttributeDict
  from dash.exceptions import PreventUpdate
  from dash.long_callback.managers import BaseLongCallbackManager
label_desc: Use image node_id 11 for calling the CeleryManager obj's underlying member method code with example usage: obj.get_result(key, job) and returns: result, self