# Type Alias CompletedJob

CompletedJob: {
args?: ScriptArgs;
canceled: boolean;
canceled_by?: string;
canceled_reason?: string;
created_at: string;
created_by: string;
deleted?: boolean;
duration_ms: number;
email: string;
flow_status?: FlowStatus;
id: string;
is_flow_step: boolean;
is_skipped: boolean;
job_kind:
| "script"
| "preview"
| "dependencies"
| "flow"
| "flowdependencies"
| "appdependencies"
| "flowpreview"
| "script_hub"
| "identity"
| "deploymentcallback"
| "singlescriptflow";
labels?: string[];
language?:
| "python3"
| "deno"
| "go"
| "bash"
| "powershell"
| "postgresql"
| "mysql"
| "bigquery"
| "snowflake"
| "mssql"
| "graphql"
| "nativets"
| "bun"
| "php";
logs?: string;
mem_peak?: number;
parent_job?: string;
permissioned_as: string;
priority?: number;
raw_code?: string;
raw_flow?: FlowValue;
result?: unknown;
schedule_path?: string;
script_hash?: string;
script_path?: string;
started_at: string;
success: boolean;
tag: string;
visible_to_owner: boolean;
workspace_id?: string;
}

#### Type declaration

- ##### `Optional` args?: ScriptArgs

- ##### canceled: boolean

- ##### `Optional` canceled_by?: string

- ##### `Optional` canceled_reason?: string

- ##### created_at: string

- ##### created_by: string

- ##### `Optional` deleted?: boolean

- ##### duration_ms: number

- ##### email: string

- ##### `Optional` flow_status?: FlowStatus

- ##### id: string

- ##### is_flow_step: boolean

- ##### is_skipped: boolean

- ##### job_kind:
  | "script"
  | "preview"
  | "dependencies"
  | "flow"
  | "flowdependencies"
  | "appdependencies"
  | "flowpreview"
  | "script_hub"
  | "identity"
  | "deploymentcallback"
  | "singlescriptflow"

- ##### `Optional` labels?: string[]

- ##### `Optional` language?:
  | "python3"
  | "deno"
  | "go"
  | "bash"
  | "powershell"
  | "postgresql"
  | "mysql"
  | "bigquery"
  | "snowflake"
  | "mssql"
  | "graphql"
  | "nativets"
  | "bun"
  | "php"

- ##### `Optional` logs?: string

- ##### `Optional` mem_peak?: number

- ##### `Optional` parent_job?: string

- ##### permissioned_as: string

  The user (u/userfoo) or group (g/groupfoo) whom the execution of this script will be permissioned_as and by extension its DT_TOKEN.

- ##### `Optional` priority?: number

- ##### `Optional` raw_code?: string

- ##### `Optional` raw_flow?: FlowValue

- ##### `Optional` result?: unknown

- ##### `Optional` schedule_path?: string

- ##### `Optional` script_hash?: string

- ##### `Optional` script_path?: string

- ##### started_at: string

- ##### success: boolean

- ##### tag: string

- ##### visible_to_owner: boolean

- ##### `Optional` workspace_id?: string

- Defined in src/types.gen.ts:160