Warning | ||
---|---|---|
| ||
This page is in development and as such, its contents may be incorrectis an internal API used for communication between nodes and is not expected to be used by others |
The worker node The connector API provides functionality that allows a administrator to perform actions such as adding and configuring connectorsmanager and worker nodes to communicate.
Easy Heading Free | ||||
---|---|---|---|---|
| ||||
Section | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Release one or moreworkersseedsReset the status of any in memory batches that were sent to a failed worker but had not been acknowledged so the may be sent to another workerReleases all the items currently not being processed, setting their status to be available, so the worker node stops processing a seed promptly when that seed is paused/stopped, this endpoint need the at least the ADMINISTRATOR or MANAGER role to be executed.
Path and Request Body Parameters
Response
Status | ||||||||||||||||||||
Response code | Description | |||||||||||||||||||
200 | Success | |||||||||||||||||||
404 | The given worker id was not found | |||||||||||||||||||
Section | ||||||||||||||||||||
Examples Release a single seed
Release one or more seedsUsed by the master manager when pausing or stopping to release all of the items for a seed from unsent batches. The manager will then forward the same to the workers
Path and Request Body Parameters | ||||||||||||||||||||
Name | Type | Required | Description | |||||||||||||||||
id | string | Required | The identifier(s) of the seed to be released |
Code Block | ||
---|---|---|
| ||
{ "id": ["AAABcID5GBc="] } |
Release multiple seeds
Code Block | ||||
---|---|---|---|---|
| ||||
PUT /aspire/_api/worker/release/seed[{ "id": "AAABcID5GBc=" }, { "id": "AAABcIueWUc=" }] |
Release multiple seeds (alternative form)
Code Block | ||
---|---|---|
| ||
{
"id": ["AAABcID5GBc=", "AAABcIueWUc="]
} |
Response
Code Block | ||||
---|---|---|---|---|
| ||||
{ "message": "optional response message" } |
Used by the worker to fetch a batch from the manager.
Panel | ||||
---|---|---|---|---|
| ||||
|
Path and Request Body Parameters
: 200, 404
Section | ||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Throttle notification (Aspire 5.3)Releases all the items currently not being processed, setting their status to be available, this endpoint need the at least the ADMINISTRATOR or MANAGER role to be executed. | ||||||||||||||||||||||||||||||||||||||||||
Name | Type | Required | Description | |||||||||||||||||||||||||||||||||||||||
tags | string | Optional | The tags this machine has | |||||||||||||||||||||||||||||||||||||||
batches | number | Optional | The number of batches to fetch (default 1) |
Code Block | ||
---|---|---|
| ||
{
<TODO>
"message": "optional response message"
} |
Status
Used by the worker node to acknowledge the worker has taken responsibility for the batch(es)
Panel | ||||
---|---|---|---|---|
| ||||
GET PUT /aspire_api/manager/batch/ack/:idPUT /aspire_api/managerworker/batch/ackthrottle/:id
seedId |
Path and Request Body Parameters
Name | Type | Required | Description |
---|---|---|---|
idseedId | string | Required | The identifier(s) of the seed to be released |
ExamplesAcknowledge a single batch
Code Block | ||
---|---|---|
| ||
{
"id": "AAABcID5GBc="
} |
Acknowledge multiple batches
Code Block | ||
---|---|---|
| ||
[{
"id": "AAABcID5GBc="
},
{
"id": "AAABcIueWUc="
}] |
| ||
PUT /aspire/_api/worker/throttle/AAABcID5GBc= |
ResponseAcknowledge multiple batches (alternative form)
Code Block | ||
---|---|---|
| ||
{
"id": ["AAABcID5GBc=", "AAABcIueWUc="]
} |
Response
| ||
Code Block | ||
---|---|---|
| ||
{ "message": "optional response message" } |
: 200, 404