def get_task_run_state(self, task_run_id: str) -> 'prefect.engine.state.State':
    '\n        Retrieves the current state for a task run.\n\n        Args:\n            - task_run_id (str): the id for this task run\n\n        Returns:\n            - State: a Prefect State object\n        '
    query = {'query': {with_args('task_run_by_pk', {'id': task_run_id}): {'serialized_state': True}}}
    task_run = self.graphql(query).data.task_run_by_pk
    return prefect.engine.state.State.deserialize(task_run.serialized_state)
Retrieves the current state for a task run.

Args:
    - task_run_id (str): the id for this task run

Returns:
    - State: a Prefect State object
def get_task_run_state(self, task_run_id: str) -> 'prefect.engine.state.State':
    '\n        Retrieves the current state for a task run.\n\n        Args:\n            - task_run_id (str): the id for this task run\n\n        Returns:\n            - State: a Prefect State object\n        '
    query = {'query': {with_args('task_run_by_pk', {'id': task_run_id}): {'serialized_state': True}}}
    task_run = self.graphql(query).data.task_run_by_pk
    return prefect.engine.state.State.deserialize(task_run.serialized_state)