# RunnerJob

Type: RunnerJob

Schema: [RunnerJob](https://sourcey-peertube.pages.dev/api-rest-reference/models/runnerjob.md)

- `uuid` (optional)
  Reference: [UUIDv4](https://sourcey-peertube.pages.dev/api-rest-reference/models/uuidv4.md); Type: UUIDv4, uuid
  
  minLength: 36
  
  maxLength: 36
  
  pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
  
  Example:
  
  ```json
  "9c9de5e8-0a1e-484a-b099-e80766180a6d"
  ```

- `type` (optional)
  Reference: [RunnerJobType](https://sourcey-peertube.pages.dev/api-rest-reference/models/runnerjobtype.md); Type: RunnerJobType
  
  enum: ["vod-web-video-transcoding","vod-hls-transcoding","vod-audio-merge-transcoding","live-rtmp-hls-transcoding"]

- `state` (optional)
  Reference: [RunnerJobStateConstant](https://sourcey-peertube.pages.dev/api-rest-reference/models/runnerjobstateconstant.md); Type: RunnerJobStateConstant

- `payload` (optional)
  Reference: [RunnerJobPayload](https://sourcey-peertube.pages.dev/api-rest-reference/models/runnerjobpayload.md); Type: object

- `failures` (optional)
  Type: integer
  
  Number of times a remote runner failed to process this job. After too many failures, the job in "error" state

- `error` (optional)
  Type: string; nullable
  
  Error message if the job is errored

- `progress` (optional)
  Type: integer
  
  Percentage progress

- `priority` (optional)
  Type: integer
  
  Job priority (less has more priority)

- `updatedAt` (optional)
  Type: string, date-time

- `createdAt` (optional)
  Type: string, date-time

- `startedAt` (optional)
  Type: string, date-time

- `finishedAt` (optional)
  Type: string, date-time

- `parent` (optional)
  Type: object; nullable
  
  If job has a parent job
  
  - `type` (optional)
    Reference: [RunnerJobType](https://sourcey-peertube.pages.dev/api-rest-reference/models/runnerjobtype.md); Type: RunnerJobType
    
    enum: ["vod-web-video-transcoding","vod-hls-transcoding","vod-audio-merge-transcoding","live-rtmp-hls-transcoding"]
  
  - `state` (optional)
    Reference: [RunnerJobStateConstant](https://sourcey-peertube.pages.dev/api-rest-reference/models/runnerjobstateconstant.md); Type: RunnerJobStateConstant
  
  - `uuid` (optional)
    Reference: [UUIDv4](https://sourcey-peertube.pages.dev/api-rest-reference/models/uuidv4.md); Type: UUIDv4, uuid
    
    minLength: 36
    
    maxLength: 36
    
    pattern: "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
    
    Example:
    
    ```json
    "9c9de5e8-0a1e-484a-b099-e80766180a6d"
    ```

- `runner` (optional)
  Type: any; nullable
  
  If job is associated to a runner
  
  - `id` (optional)
    Type: number
  
  - `name` (optional)
    Type: string
  
  - `description` (optional)
    Type: string