class_docstr: Log the job's return value or error upon job end
class_docstr_tok: ["Log","the","job","'s","return","value","or","error","upon","job","end"]
code: def on_job_end(
      self, config: DictConfig, job_return: JobReturn, **kwargs: Any
  ) -> None:
      if job_return.status == JobStatus.COMPLETED:
          self.log.info(
              f"Succeeded with return value: {job_return.return_value}"
          )
      elif job_return.status == JobStatus.FAILED:
          self.log.error("", exc_info=job_return._return_value)
      else:
          self.log.error("Status unknown. This should never happen.")
  
file_path: hydra/hydra/experimental/callbacks.py
imports: import logging
  import pickle
  from pathlib import Path
  from typing import Any
  from omegaconf import DictConfig
  from hydra.core.utils import JobReturn, JobStatus
  from hydra.experimental.callback import Callback
label_desc: Use image node_id 2 for calling the LogJobReturnCallback obj's underlying member method code with example usage: obj.on_job_end(config, job_return) without return types