AgentSkillsCN

aria-schedule

管理 Aria 的定时任务、日常事务以及后台运行的操作。

SKILL.md
--- frontmatter
name: aria-schedule
description: Manage Aria's scheduled jobs, tasks, and background operations.
metadata: {"openclaw": {"emoji": "📅", "requires": {"env": ["DATABASE_URL"]}}}

aria-schedule

Manage scheduled jobs, background tasks, and complex pending operations.

Usage

bash
exec python3 /root/.openclaw/workspace/skills/run_skill.py schedule <function> '<json_args>'

Functions

schedule_list

List scheduled jobs.

bash
exec python3 /root/.openclaw/workspace/skills/run_skill.py schedule schedule_list '{"status": "active"}'

schedule_tick

Get current tick status.

bash
exec python3 /root/.openclaw/workspace/skills/run_skill.py schedule schedule_tick '{}'

schedule_trigger

Manually trigger schedule.

bash
exec python3 /root/.openclaw/workspace/skills/run_skill.py schedule schedule_trigger '{"force": true}'

schedule_sync

Sync jobs from OpenClaw.

bash
exec python3 /root/.openclaw/workspace/skills/run_skill.py schedule schedule_sync '{}'

task_create

Create a pending complex task.

bash
exec python3 /root/.openclaw/workspace/skills/run_skill.py schedule task_create '{"type": "research", "prompt": "Research latest Python 3.13 features", "priority": "medium"}'

task_list

List pending tasks.

bash
exec python3 /root/.openclaw/workspace/skills/run_skill.py schedule task_list '{"status": "pending"}'

task_update

Update task status.

bash
exec python3 /root/.openclaw/workspace/skills/run_skill.py schedule task_update '{"task_id": 5, "status": "completed", "result": "Completed research..."}'

API Endpoints

  • GET /schedule/tick - Current tick status
  • POST /schedule/tick - Trigger tick
  • GET /schedule/jobs - List jobs from DB
  • GET /schedule/jobs/live - Jobs from OpenClaw
  • POST /schedule/sync - Sync jobs
  • GET /tasks - List pending tasks
  • POST /tasks - Create task
  • PATCH /tasks/{id} - Update task

Database Schema

scheduled_jobs:

ColumnTypeDescription
idSERIALPrimary key
nameTEXTJob name
scheduleTEXTCron expression
commandTEXTCommand to execute
statusTEXTactive/paused
last_runTIMESTAMPLast execution
next_runTIMESTAMPNext scheduled

pending_tasks:

ColumnTypeDescription
idSERIALPrimary key
typeTEXTTask type
promptTEXTTask prompt
priorityTEXTPriority level
statusTEXTpending/in_progress/completed/failed
contextJSONBAdditional context
resultTEXTTask result
created_atTIMESTAMPCreation time