import apiClient from './client';

export interface RunningJob {
  name: string;
  label: string;
  progress_pct: number | null;
  processed: number | null;
  total: number | null;
  current_ticker: string | null;
}

export function getRunningJobs() {
  return apiClient
    .get<{ running: RunningJob[] }>('jobs/running')
    .then((r) => r.data);
}
