Options
All
  • Public
  • Public/Protected
  • All
Menu

batch-cluster

Index

Type aliases

ChildEndCountType: WhyNotReady | "tooMany"

Variables

ConsoleLogger: Logger = ...

Default Logger implementation. debug and info go to util.debuglog("batch-cluster"). warnanderrorgo toconsole.warnandconsole.error`.

Log: { filterLevels: (l: Logger, minLogLevel: keyof Logger) => any; withLevels: (delegate: Logger) => Logger; withTimestamps: (delegate: Logger) => any } = ...

Type declaration

LogLevels: keyof Logger[] = ...
NoLogger: Logger = ...

Logger that disables all logging.

Functions

  • SimpleParser(stdout: string, stderr: undefined | string, passed: boolean): string | Promise<string>
  • Parameters

    • stdout: string
    • stderr: undefined | string
    • passed: boolean

    Returns string | Promise<string>

  • kill(pid: undefined | null | number, force?: boolean): void
  • Send a signal to the given process id.

    export

    Parameters

    • pid: undefined | null | number

      the process id. Required.

    • force: boolean = false

    Returns void

  • pidExists(pid: undefined | null | number): Promise<boolean>
  • Parameters

    • pid: undefined | null | number

      process id. Required.

    Returns Promise<boolean>

    true if the given process id is in the local process table. The PID may be paused or a zombie, though.

  • pids(): Promise<number[]>
  • export

    Returns Promise<number[]>

    all the Process IDs in the process table.

Generated using TypeDoc