Task User API
Task User API allows users to manually control Aidbox tasks by RPC methods.
awf.task/create-and-execute
awf.task/create-and-execute
Creates an instance of a defined task and makes it ready to be executed immediately or at a specified time.
Params:
Parameter | Type | Required | Description |
---|---|---|---|
id | string | Identifier of task (If not provided, will be auto-generated). | |
label | string | Human- or machine-readable description of task instance.
Example: | |
definition | string | Definition of predefined task or
custom-defined task.
Example: | |
params | object | The input parameters described in the task definition. | |
executeAt | string | Time at which the task will become ready. If not provided - task will become ready immediately.
Example: |
Result:
Parameter | Type | Description |
---|---|---|
resource | object | Created AidboxTask resource. |
awf.task/status
awf.task/status
Returns the status of a task instance with the specified id.
Params:
Parameter | Type | Required | Description |
---|---|---|---|
id | string | Id of the task whose status will be returned. | |
include-settings? | boolean | If | |
include-log? | boolean | If |
Result:
Parameter | Type | Description |
---|---|---|
resource | object | Created AidboxTask resource. |
settings | object | TODO |
log | object[] | AidboxTaskLog resources for task with specified id |
awf.task/cancel
awf.task/cancel
Cancels execution of a created task instance.
Params:
Parameter | Type | Required | Description |
---|---|---|---|
id | string | Id of the task that will be canceled. |
Result:
Parameter | Type | Description |
---|---|---|
resource | object | Created AidboxTask resource. |
awf.task/list
awf.task/list
Returns the list of all tasks.
Params:
Parameter | Type | Required | Description |
---|---|---|---|
filter | object | ||
filter.includeDefinitions | string[] | Array of task definitions to include. | |
filter.excludeDefinitions | string[] | Array of task definitions to exclude. | |
filter.status | string | Include task with specified status.
Possible values: | |
filter.outcome | string | Include task with status | |
filter.ilike | string | ilike search by resource content | |
sort | object | May contain either | |
sort.createdAt | string | Sorts result by | |
sort.lastUpdated | string | Sorts result by |
Result:
Parameter | Type | Description |
---|---|---|
resources | object[] | Created AidboxTask resources. |
Last updated