Skip to main content

Function: getJob()

function getJob(jobId: string): Promise<{
  completed_at?: null | string;
  created_at: string;
  error_message?: null | string;
  failed_at?: null | string;
  id: string;
  job_name: string;
  migration_name?: null | string;
  monitor_batch_id?: null | string;
  processing_started?: null | string;
  progress_message?: null | string;
  progress_percent?: number;
  project_id: string;
  request_data: {
    [key: string]: unknown;
  };
  retries: number;
  run_id: string;
  status: string;
  steps_completed?: number;
  steps_total?: number;
  updated_at: string;
}>;
Defined in: src/utils/job-progress.ts Gets a single job by its ID.

Parameters

jobId

string The unique identifier of the job.

Returns

Promise<{ completed_at?: null | string; created_at: string; error_message?: null | string; failed_at?: null | string; id: string; job_name: string; migration_name?: null | string; monitor_batch_id?: null | string; processing_started?: null | string; progress_message?: null | string; progress_percent?: number; project_id: string; request_data: { [key: string]: unknown; }; retries: number; run_id: string; status: string; steps_completed?: number; steps_total?: number; updated_at: string; }> The job object.