class_docstr: Watches the status of a Tableau Server Job.
  
  .. seealso:: https://tableau.github.io/server-client-python/docs/api-ref#jobs
  
  :param job_id: Id of the job to watch.
  :param site_id: The id of the site where the workbook belongs to.
  :param tableau_conn_id: The :ref:`Tableau Connection id <howto/connection:tableau>`
      containing the credentials to authenticate to the Tableau Server.
docstr: Pokes until the job has successfully finished.
  
  :param context: The task context during execution.
  :return: True if it succeeded and False if not.
code: def poke(self, context: Context) -> bool:
      """
      Pokes until the job has successfully finished.
  
      :param context: The task context during execution.
      :return: True if it succeeded and False if not.
      """
      with TableauHook(
          self.site_id, self.tableau_conn_id
      ) as tableau_hook:
          finish_code = tableau_hook.get_job_status(job_id=self.job_id)
          self.log.info(
              "Current finishCode is %s (%s)",
              finish_code.name,
              finish_code.value,
          )
  
          if finish_code in (
              TableauJobFinishCode.ERROR,
              TableauJobFinishCode.CANCELED,
          ):
              # TODO: remove this if block when min_airflow_version is set to higher than 2.7.1
              message = "The Tableau Refresh Workbook Job failed!"
              if self.soft_fail:
                  raise AirflowSkipException(message)
              raise TableauJobFailedException(message)
  
          return finish_code == TableauJobFinishCode.SUCCESS
  
file_path: airflow/airflow/providers/tableau/sensors/tableau.py
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Sequence
  from airflow.exceptions import AirflowSkipException
  from airflow.providers.tableau.hooks.tableau import TableauHook, TableauJobFailedException, TableauJobFinishCode
  from airflow.sensors.base import BaseSensorOperator
label_desc: Use image node_id 2 for calling the TableauJobStatusSensor obj's underlying member method code with example usage: obj.poke(context) and returns: unknown