JS Task API Reference
Module: task
Table of contents
Enumerations
Classes
Interfaces
Type Aliases
Type Aliases
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) |
activityReadySetupFunctions? | Worker <unknown >[] | array of setup functions to run on each activity |
Defined in
TaskDetails
Ƭ TaskDetails: Object
Type declaration
Name | Type |
---|---|
id | string |
retriesCount | number |
agreementId? | string |
activityId? | string |
provider? | ProviderInfo |
error? | Error |