docs: def finished(self):
      """
      True if the job run and finished. There is no difference if the job
      finished successfully or errored.
      """
  
      return self.__state in (Job.ERROR, Job.SUCCESS, Job.CANCELLED)