This module implements the Worker API, used to create workers for earning DCCs.
Classes
Type Definitions
object
# SupervisorOptions
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
paymentAddress |
string | Keystore |
<optional> |
Address to deposit earned funds into |
|
identityKeystore |
Keystore |
<optional> |
Keystore to use as the supervisor's identity |
|
schedulerURL |
URL | string |
<optional> |
URL of the scheduler |
|
packageManagerURL |
URL | string |
<optional> |
URL of the package manager |
|
jobAddresses |
Array.<string> |
<optional> |
[] | If set, the supervisor will only fetch work for the provided jobIDs |
priorityOnly |
boolean |
<optional> |
false | Whether to only work on priority jobs, i.e. become idle if |
sandboxOptions |
SandboxOptions |
<optional> |
Options that will be passed to the Sandbox constructor |
|
maxWorkingSandboxes |
number |
<optional> |
Max number of concurrently working sandboxes |
|
watchdogInterval |
number |
<optional> |
Number of MS inbetween watchdog cycles, defaults to dcpConfig tuning param |