JS Task API Reference
Module: task
Table of contents
Enumerations
Classes
Interfaces
Type Aliases
Type Aliases
TaskFunction
Ƭ TaskFunction<OutputType
>: (exe
: ExeUnit
) => Promise
<OutputType
>
Type parameters
Name |
---|
OutputType |
Type declaration
▸ (exe
): Promise
<OutputType
>
Parameters
Name | Type |
---|---|
exe | ExeUnit |
Returns
Promise
<OutputType
>
Defined in
TaskOptions
Ƭ TaskOptions: Object
Type declaration
Name | Type | Description |
---|---|---|
maxRetries? | number | maximum number of retries if task failed due to provider reason, default = 5 |
retryOnTimeout? | boolean | Opt-in for retries of the tasks when the timeout startupTimeout are reached Default ts false |
timeout? | number | timeout in ms for task execution, measured for one attempt from start to stop, default = 300_000 (5min) |
startupTimeout? | number | timeout in ms for task startup, measured from initialization to start, default = 120_000 (2min) |
Defined in
TaskDetails
Ƭ TaskDetails: Object
Type declaration
Name | Type |
---|---|
id | string |
retriesCount | number |
agreementId? | string |
activityId? | string |
provider? | ProviderInfo |
error? | Error |
Defined in
Was this helpful?