Skip to main content

Sends swarm unit direct execution info

PUB 

{agent-base-topic}/direct_execution_info

The elected Swarm Leader publishes the tasks the Swarm Unit can do, which depend on the tasks its current members support. tasks-executing is required and lists every member's executing tasks (the leader's own included), taken from each member's own direct_execution_info, which the leader subscribes to while it leads, with that member's real task-name, task-status and task-ttf (a member not yet heard after a leadership change lists nothing until it is) plus the Swarm Unit's own set-swarm-intent, each item carrying task-name, task-uuid, task-status, optional task-ttf and a required agent naming the member that runs it; the agent field is a swarm-only exception to the WARA-PS spec.

MQTT​

QoS0
retainfalse

Message message​

Sends swarm unit direct execution info
{
"tasks-available": [
{
"signals": [
"$abort"
]
}
],
"tasks-executing": [
{
"parent-task-uuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"parent-com-uuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"agent": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
],
"name": "string",
"rate": 0,
"stamp": 0
}