Esta página todavía está en inglés. La traducción al español está en progreso.
Scheduled Tasks
Scheduled tasks are one-off actions that execute once at a specified date/time. Unlike routines (which repeat on a cron schedule), a scheduled task runs once and is done.Use Cases
- “Post no LinkedIn sexta 10h” — schedule a skill to run at a specific time
- “Roda o financial pulse amanha 8h” — run an existing script at a future time
- “Envia resumo pro Telegram as 14h” — send a prompt to an agent later
Task Types
Creating Tasks
Via CLI (skill)
Say “schedule this for” or use theschedule-task skill:
Via Dashboard
Go to/tasks in the dashboard:
- Click ”+ New Task”
- Fill in: name, type, payload, agent, date/time
- Click Schedule
Via API
Task Lifecycle
- pending — waiting for scheduled time
- running — currently executing
- completed — finished successfully
- failed — error occurred (can be retried with “Run Now”)
- cancelled — manually cancelled before execution
How Execution Works
- The scheduler loop (every 30 seconds) queries:
WHERE status='pending' AND scheduled_at <= NOW() - Each matching task is executed in a background thread
- For
skillandprompttypes, the task usesADWs/runner.py(same infrastructure as routines) - For
scripttype, the Python script runs as a subprocess - Results are saved in
result_summary; errors inerror - Status updates to
completedorfailed
API Reference
Query parameters for GET
/api/tasks:
status— filter by status (pending, running, completed, failed, cancelled)page— page number (default: 1)per_page— items per page (default: 50)
Dashboard Page
The/tasks page shows:
- Filter tabs — All, Pending, Running, Completed, Failed
- Task table — name, type badge, agent badge, scheduled time, status, actions
- Create modal — form with name, description, type, payload, agent, datetime
- View result modal — shows output/error for completed/failed tasks