romm_tasks
Monitor running and scheduled task status to track progress and identify issues in your workflow.
Instructions
Check running and scheduled task status.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- server.py:967-990 (handler)The handler function romm_tasks, which calls the tasks/status endpoint of the RomM API to retrieve and format the status of background tasks.
async def romm_tasks() -> str: """Check running and scheduled task status.""" data = await _get("tasks/status") if not isinstance(data, (dict, list)): return "No task data available." if isinstance(data, dict): lines = ["Task Status:\n"] for task_name, info in data.items(): if isinstance(info, dict): status = info.get("status", "unknown") last_run = info.get("last_run", "") next_run = info.get("next_run", "") line = f" {task_name}: {status}" if last_run: line += f" (last: {last_run})" if next_run: line += f" (next: {next_run})" lines.append(line) else: lines.append(f" {task_name}: {info}") return "\n".join(lines)