Type aliases
RunJob
Run
Job: (request: JobRequest, workdir: string, channel: ServerChannel) => Promise<void>
Type declaration
-
- (request: JobRequest, workdir: string, channel: ServerChannel): Promise<void>
-
Parameters
-
-
workdir: string
-
channel: ServerChannel
Returns Promise<void>
Function interface for telling a daemon how to run jobs. Follows the strategy design pattern.
If the job fails to execute, the promise will be rejected. This is distinct from when the job completes successfully with a failing exit status.
Description of the job to be run.
Absolute path to the Make project directory. It must contain all needed inputs and the Makefile.
The SSH client waiting for the response.
Asynchronously, when the job is complete.