class_docstr: Possible states of a job once it has been accepted by the job manager.
  
  :data:`CREATED`:
  
  Job is newly created, no task has started to run.
  
  :data:`RUNNING`:
  
  Some tasks are scheduled or running, some may be pending, some may be finished.
  
  :data:`FAILING`:
  
  The job has failed and is currently waiting for the cleanup to complete.
  
  :data:`FAILED`:
  
  The job has failed with a non-recoverable task failure.
  
  :data:`CANCELLING`:
  
  Job is being cancelled.
  
  :data:`CANCELED`:
  
  Job has been cancelled.
  
  :data:`FINISHED`:
  
  All of the job's tasks have successfully finished.
  
  :data:`RESTARTING`:
  
  The job is currently undergoing a reset and total restart.
  
  :data:`SUSPENDED`:
  
  The job has been suspended which means that it has been stopped but not been removed from a
  potential HA job store.
  
  :data:`RECONCILING`:
  
  The job is currently reconciling and waits for task execution report to recover state.
  
  .. versionadded:: 1.11.0
docstr: Checks whether this state is locally terminal. Locally terminal refers to the
  state of a job's execution graph within an executing JobManager. If the execution graph
  is locally terminal, the JobManager will not continue executing or recovering the job.
  
  The only state that is locally terminal, but not globally terminal is SUSPENDED,
  which is typically entered when the executing JobManager loses its leader status.
  
  :return: ``True`` if this job status is terminal, ``False`` otherwise.
  
  .. versionadded:: 1.11.0
docstr_tok: ["Checks","whether","this","state","is","locally","terminal",".","Locally","terminal","refers","to","the","state","of","a","job","'s","execution","graph","within","an","executing","JobManager",".","If","the","execution","graph","is","locally","terminal",",","the","JobManager","will","not","continue","executing","or","recovering","the","job",".","The","only","state","that","is","locally","terminal",",","but","not","globally","terminal","is","SUSPENDED",",","which","is","typically","entered","when","the","executing","JobManager","loses","its","leader","status",".",":","return",":","``","True","``","if","this","job","status","is","terminal",",","``","False","``","otherwise",".","..","versionadded",":",":","1.11.0"]
code: def is_terminal_state(self) -> bool:
      """
      Checks whether this state is locally terminal. Locally terminal refers to the
      state of a job's execution graph within an executing JobManager. If the execution graph
      is locally terminal, the JobManager will not continue executing or recovering the job.
  
      The only state that is locally terminal, but not globally terminal is SUSPENDED,
      which is typically entered when the executing JobManager loses its leader status.
  
      :return: ``True`` if this job status is terminal, ``False`` otherwise.
  
      .. versionadded:: 1.11.0
      """
      return self._to_j_job_status().isTerminalState()
  
imports: from enum import Enum
  from pyflink.java_gateway import get_gateway
label_desc: Use image node_id 2 for calling the JobStatus obj's underlying member method code with example usage: obj.is_terminal_state() and returns: self