> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get State

> Get state of the job.



## OpenAPI

````yaml docs/avxcelerate/post-controller-rest-api/explore.aws-pre-prod-api-post-controller-v1.json GET /v1/state
openapi: 3.1.0
info:
  title: AVxcelerate Post Controller
  summary: Service to manage post processing jobs
  version: 0.1.0
servers:
  - url: >-
      https://{host}/transient-services/exp-9fb19aaf-a78d-4f7c-a0d8-0865fa47acf1-post-service/m9o-TYMlxwurawkaKRMaiVpOCviwsDuYsHKgVDt3n6g8ndUpWTITze8WMZw_8PN3J9o_uoAq76XEudp8IJ9-rg
    variables:
      host:
        default: api.example.com
        description: Host the API is served from
security: []
paths:
  /v1/state:
    get:
      tags:
        - main
      summary: Get State
      description: Get state of the job.
      operationId: main-get_state
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StateModel'
      security:
        - HTTPBearer: []
components:
  schemas:
    StateModel:
      properties:
        job_id:
          type: string
          title: Job Id
        tasks_state:
          additionalProperties:
            $ref: '#/components/schemas/TaskState'
          type: object
          title: Tasks State
          default: {}
        start_time:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Start Time
        last_update_time:
          type: string
          format: date-time
          title: Last Update Time
        completion_time:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Completion Time
        duration_in_seconds:
          anyOf:
            - type: number
            - type: 'null'
          title: Duration In Seconds
        sample_status_info:
          additionalProperties:
            $ref: '#/components/schemas/SamplesStatusInfo'
          type: object
          title: Sample Status Info
          default: {}
      type: object
      required:
        - job_id
      title: StateModel
      description: This Module is defined to save/restore the state of a Job Run.
    TaskState:
      properties:
        task_name:
          type: string
          title: Task Name
        start_time:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Start Time
        completion_time:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Completion Time
        duration_in_seconds:
          type: number
          title: Duration In Seconds
          default: 0
        status:
          $ref: '#/components/schemas/TaskStatus'
          default: Pending
        comment:
          anyOf:
            - type: string
            - type: 'null'
          title: Comment
        history:
          items:
            $ref: '#/components/schemas/TaskHistory'
          type: array
          title: History
        attribute:
          additionalProperties:
            $ref: '#/components/schemas/JsonValue'
          type: object
          title: Attribute
        sub_states:
          anyOf:
            - items:
                $ref: '#/components/schemas/StateModel'
              type: array
            - type: 'null'
          title: Sub States
      type: object
      required:
        - task_name
      title: TaskState
      description: Holds state of a task.
    SamplesStatusInfo:
      properties:
        Success:
          type: integer
          title: Success
        Failed:
          type: integer
          title: Failed
        Pending:
          type: integer
          title: Pending
        Scheduled:
          type: integer
          title: Scheduled
      type: object
      required:
        - Success
        - Failed
        - Pending
        - Scheduled
      title: SamplesStatusInfo
      description: This class contains status info of all samples.
    TaskStatus:
      type: string
      enum:
        - Pending
        - Running
        - Succeeded
        - Failed
      title: TaskStatus
      description: Possible statuses of a task.
    TaskHistory:
      properties:
        timestamp:
          type: string
          format: date-time
          title: Timestamp
        status:
          $ref: '#/components/schemas/TaskStatus'
          default: Pending
        comment:
          anyOf:
            - type: string
            - type: 'null'
          title: Comment
      type: object
      title: TaskHistory
      description: Holds historical changes in state of class.
    JsonValue: {}

````