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

  • Optionalargs?: ScriptArgs
  • canceled: boolean
  • Optionalcanceled_by?: string
  • Optionalcanceled_reason?: string
  • created_at: string
  • created_by: string
  • Optionaldeleted?: boolean
  • duration_ms: number
  • email: string
  • Optionalflow_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"
  • Optionallabels?: string[]
  • Optionallanguage?:
        | "python3"
        | "deno"
        | "go"
        | "bash"
        | "powershell"
        | "postgresql"
        | "mysql"
        | "bigquery"
        | "snowflake"
        | "mssql"
        | "graphql"
        | "nativets"
        | "bun"
        | "php"
  • Optionallogs?: string
  • Optionalmem_peak?: number
  • Optionalparent_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.

  • Optionalpriority?: number
  • Optionalraw_code?: string
  • Optionalraw_flow?: FlowValue
  • Optionalresult?: unknown
  • Optionalschedule_path?: string
  • Optionalscript_hash?: string
  • Optionalscript_path?: string
  • started_at: string
  • success: boolean
  • tag: string
  • visible_to_owner: boolean
  • Optionalworkspace_id?: string