Job

tcmts.cli.mcp.Job · #yljkjtyq · type

A command run in the background, for tcm_job to report on: its record, <id>.json in its session's jobs directory (jobsDirFor), beside its output (<id>.log) and how it ended (<id>.exit, a JobEnd). A process of its own (runJob), it outlives the server that started it, and a server started later follows it.

export interface Job {
  argv: string[];
  /** a tool's own run (`tcm_merge`), which says what it did itself, rather than one command's */
  tool?: string;
  started: number;
  /** its process (`runJob`'s), the leader of a process group holding what it runs */
  pid: number;
  /** the server that started it */
  server: number;
}

used by