interface Job {
    _id: string;
    attempt: number;
    batch?: any;
    compute_provider_id: string;
    config: {
        [key: string]: any;
    };
    created: string;
    destination: {
        id: string;
        type: string;
    };
    failure_reason?: string;
    gear_id: string;
    gear_info: {
        capabilities?: string[];
        category: string;
        description?: string;
        id: string;
        name: string;
        version: string;
    };
    id?: string;
    inputs: JobInput[];
    label: string;
    modified: string;
    origin: {
        id: string;
        type: OriginType;
    };
    outputs: File[];
    parent_info?: {
        [container: string]: {
            _id: string;
            label: string;
        } | null;
    };
    parents: {
        [container: string]: string | null;
    };
    previous_job_id?: string;
    priority?: JobPriority;
    produced_metadata: {
        [key: string]: any;
    };
    profile: {
        elapsed_time_ms: number;
        executor?: {
            cpu_cores: number;
            disk_bytes: number;
            gpu: boolean;
            host: string;
            instance_type: string;
            memory_bytes: number;
            name: string;
            swap_bytes: number;
        };
        preparation_time_ms: number;
        total_input_files: number;
        total_input_size_bytes: number;
        total_output_files: number;
        total_output_size_bytes: number;
        total_time_ms: number;
        upload_time_ms: number;
        versions: {
            [component: string]: string;
        };
    };
    related_container_ids: string[];
    request: {
        inputs: {
            location: string;
            type: string;
            uri: string;
            vu: string;
        }[];
        outputs: {
            location: string;
            type: string;
            uri: string;
            vu: string;
        }[];
        target: {
            command: string[];
            dir: string;
            env: {
                [name: string]: string;
            };
            gid: string;
            uid: string;
        };
    };
    retried: string;
    role_id?: string;
    rule_id?: string;
    saved_files: string[];
    state: JobState;
    tags: string[];
    transitions: {
        cancelled?: string;
        complete?: string;
        failed?: string;
        running?: string;
    };
}

Properties

_id: string
attempt: number
batch?: any
compute_provider_id: string
config: {
    [key: string]: any;
}

Type declaration

  • [key: string]: any
created: string
destination: {
    id: string;
    type: string;
}

Type declaration

  • id: string
  • type: string
failure_reason?: string
gear_id: string
gear_info: {
    capabilities?: string[];
    category: string;
    description?: string;
    id: string;
    name: string;
    version: string;
}

Type declaration

  • Optional capabilities?: string[]
  • category: string
  • Optional description?: string
  • id: string
  • name: string
  • version: string
id?: string
inputs: JobInput[]
label: string
modified: string
origin: {
    id: string;
    type: OriginType;
}

Type declaration

outputs: File[]
parent_info?: {
    [container: string]: {
        _id: string;
        label: string;
    } | null;
}

Type declaration

  • [container: string]: {
        _id: string;
        label: string;
    } | null
parents: {
    [container: string]: string | null;
}

Type declaration

  • [container: string]: string | null
previous_job_id?: string
priority?: JobPriority
produced_metadata: {
    [key: string]: any;
}

Type declaration

  • [key: string]: any
profile: {
    elapsed_time_ms: number;
    executor?: {
        cpu_cores: number;
        disk_bytes: number;
        gpu: boolean;
        host: string;
        instance_type: string;
        memory_bytes: number;
        name: string;
        swap_bytes: number;
    };
    preparation_time_ms: number;
    total_input_files: number;
    total_input_size_bytes: number;
    total_output_files: number;
    total_output_size_bytes: number;
    total_time_ms: number;
    upload_time_ms: number;
    versions: {
        [component: string]: string;
    };
}

Type declaration

  • elapsed_time_ms: number
  • Optional executor?: {
        cpu_cores: number;
        disk_bytes: number;
        gpu: boolean;
        host: string;
        instance_type: string;
        memory_bytes: number;
        name: string;
        swap_bytes: number;
    }
    • cpu_cores: number
    • disk_bytes: number
    • gpu: boolean
    • host: string
    • instance_type: string
    • memory_bytes: number
    • name: string
    • swap_bytes: number
  • preparation_time_ms: number
  • total_input_files: number
  • total_input_size_bytes: number
  • total_output_files: number
  • total_output_size_bytes: number
  • total_time_ms: number
  • upload_time_ms: number
  • versions: {
        [component: string]: string;
    }
    • [component: string]: string
related_container_ids: string[]
request: {
    inputs: {
        location: string;
        type: string;
        uri: string;
        vu: string;
    }[];
    outputs: {
        location: string;
        type: string;
        uri: string;
        vu: string;
    }[];
    target: {
        command: string[];
        dir: string;
        env: {
            [name: string]: string;
        };
        gid: string;
        uid: string;
    };
}

Type declaration

  • inputs: {
        location: string;
        type: string;
        uri: string;
        vu: string;
    }[]
  • outputs: {
        location: string;
        type: string;
        uri: string;
        vu: string;
    }[]
  • target: {
        command: string[];
        dir: string;
        env: {
            [name: string]: string;
        };
        gid: string;
        uid: string;
    }
    • command: string[]
    • dir: string
    • env: {
          [name: string]: string;
      }
      • [name: string]: string
    • gid: string
    • uid: string
retried: string
role_id?: string
rule_id?: string
saved_files: string[]
state: JobState
tags: string[]
transitions: {
    cancelled?: string;
    complete?: string;
    failed?: string;
    running?: string;
}

Type declaration

  • Optional cancelled?: string
  • Optional complete?: string
  • Optional failed?: string
  • Optional running?: string