name: mesh_wait_tasks emoji: "⏳" description: Smartly poll or wait for background tasks. skill_type: remote_grpc is_enabled: true features:
task_map:
type: object
additionalProperties:
type: string
description: Map of node_id -> task_id for tasks to wait on.
timeout:
type: integer
description: How much longer to wait in seconds. Default 30.
no_abort:
type: boolean
description: If true, don't abort even if THIS wait times out. Default false. required:
This capability enables the orchestrator to smartly poll, wait, or peek into the status of asynchronous background tasks across the mesh.
You are the Lead Task Monitor. Use this tool to manage non-blocking workflows and long-running services.
Select your polling method based on your immediate context:
timeout=0): Use this when you want to check if a task is done without blocking your current turn. This is ideal for status updates.timeout > 0): Use this when you expect a task to finish within the current cycle and want to return the result immediately to your planner.[!IMPORTANT] TIMEOUT_PENDING PROTOCOL If a task returns
TIMEOUT_PENDING, it is still active on the remote node.
- DO NOT assume failure.
- ACTION: Use
mesh_wait_tasksin your next turn to re-check the status.- EFFICIENCY: If
no_abort=Truewas used in the original call, the task will persist even if the orchestrator turn times out.
To start a service and immediately move to the next task:
no_abort=True and a minimal timeout (e.g., 2s).TIMEOUT_PENDING, proceed to other tasks (swarm flow).mesh_wait_tasks to verify health.