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 terminate_unhealthy_job(self, job):
      task = self.get_task(job)
      if task and task.status in ("FAILURE", "REVOKED"):
          return self.terminate_job(job)
      return False
  
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 3 for calling the CeleryManager obj's underlying member method code with example usage: obj.terminate_unhealthy_job(job) and returns: False, self