Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

task-scheduler

bởi jacobthejacobs

CLI Utilities
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Schedule tasks and commands to run at specific times.

Mô tả

Kỹ năng này làm gì

Schedules shell commands, agent tasks, API health checks, and file operations using natural language or cron syntax. Supports one-shot and recurring jobs. Parses time expressions like "in 5 minutes", "every monday at 9am", or standard cron patterns.

Uses OpenClaw's built-in cron tools with no external dependencies, so there are no scheduler services to configure or credentials to manage.

Khi nào nên dùng

  • Running npm test every weekday morning before standup
  • Backing up a database every Sunday night automatically
  • Polling an API health endpoint every 30 minutes
  • Generating a weekly sales report every Monday at 9am
  • Cleaning temp files daily at 3am without manual intervention

Quy trình ví dụ

ĐẦU VÀO

User asks: /schedule check https://api.example.com/health every 30m

AGENT
  1. 1

    Classifies task as API health check based on URL and 'check' keyword

  2. 2

    Parses recurrence as every 30 minutes, converting to everyMs: 1800000

  3. 3

    Detects delivery channel from current session context

  4. 4

    Calls cron.add with kind: 'every', everyMs: 1800000, and payload targeting the URL

  5. 5

    Confirms scheduling and returns jobId to user

ĐẦU RA

Task scheduled. Runs every 30 minutes, fetches URL and reports HTTP status to current channel. Job ID returned for cancellation.

Cài đặt

clawhub install jacobthejacobs/task-scheduler

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết