Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface BatchProcessOptions

BatchProcessOptions have no reasonable defaults, as they are specific to the API of the command that BatchCluster is spawning.

All fields must be set.

Hierarchy

Index

Properties

Optional exitCommand

exitCommand: undefined | string

Command to end the child batch process. If not provided, stdin will be closed to signal to the child process that it may terminate, and if it does not shut down within endGracefulWaitTimeMillis, it will be SIGHUP'ed.

fail

fail: string | RegExp

Expected text to print if a command fails. Cannot be blank. Strings will be interpreted as a regular expression fragment.

pass

pass: string | RegExp

Expected text to print if a command passes. Cannot be blank. Strings will be interpreted as a regular expression fragment.

versionCommand

versionCommand: string

Low-overhead command to verify the child batch process has started. Will be invoked immediately after spawn. This command must return before any tasks will be given to a given process.

Generated using TypeDoc