Skip to main content

Receives task signal

SUB 

{agent-base-topic}/task/{task-id}/signal

A member hands a signal for a task it accepted as ingress to the elected Swarm Leader. Signals for assigned tasks are forwarded to the selected executor on its internal task-command topic. An abort removes a queued task immediately; pause, continue, and enough before assignment receive a failed response and are not retained for later execution. A signal for a Parent Task (a move-to with params.agent-count above 1) acts on every Sub-Task of it that is still alive, the leader forwarding it to each executor under that Sub-Task's task-uuid and a new com-uuid: abort aborts every Sub-Task and ends the Parent Task aborted, pause and continue apply to every running one so the Parent Task is paused only when every unfinished, non-superseded Sub-Task is paused (a failed Sub-Task that has been replaced is superseded), and enough finishes every Sub-Task and with them the Parent Task. A Sub-Task that has already ended is left alone. A signal sent to a single Sub-Task's task-uuid, to the leader or to its executor, is rejected with a failed response with fail-reason 'inactive task' and changes nothing. Before the Parent Task's commit, the rules for a task not yet assigned apply to it: abort closes the allocation, releases every held Sub-Task and ends the Parent Task aborted, and pause, continue and enough receive a failed response with fail-reason 'signal not applicable before assignment'.

MQTT​

QoS1
retainfalse

Message message​

Receives task signal
{
"swarm-id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"task-id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}