JS API Reference

Class: RemoteProcess

task/process.RemoteProcess

RemoteProcess class representing the process spawned on the provider by WorkContext.spawn

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new RemoteProcess(streamOfActivityResults, activity): RemoteProcess

Parameters

NameType
streamOfActivityResultsReadable
activityActivity

Returns

RemoteProcess

Defined in

src/task/process.ts:23

Properties

stdout

Readonly stdout: Readable

Stream connected to stdout from provider process

Defined in

src/task/process.ts:16


stderr

Readonly stderr: Readable

Stream connected to stderr from provider process

Defined in

src/task/process.ts:20

Methods

waitForExit

waitForExit(timeout?): Promise<Result<any>>

Waits for the process to complete and returns the last part of the command's results as a Result object. If the timeout is reached, the return promise will be rejected.

Parameters

NameTypeDescription
timeout?numbermaximum waiting time im ms for the final result (default: 20_000)

Returns

Promise<Result<any>>

Defined in

src/task/process.ts:39

Was this helpful?