Cron Jobs

Schedule recurring shell commands with HookWatch's cron job system. Commands run locally on your registered CLI agents, with execution history, monitoring, and failure notifications synced to the cloud.

Key Features

Flexible Scheduling

Use standard cron expressions or human-readable formats like "every 5 minutes" or "daily at 9am".

Automatic Retries

Configure retry attempts with customizable intervals when jobs fail. Never miss a critical task.

Notifications

Get notified via webhook, email, or Slack when jobs succeed or fail. Stay informed about your scheduled tasks.

Execution History

Full execution logs with timestamps, duration, exit codes, and output. Debug issues quickly.

Quick Start

Create a cron job using the CLI or API:

Using the CLI

Terminal

Using the API

curl

How It Works

1

Create a Job

Define your cron job with a name, schedule, and the shell command to execute. Configure optional retry logic, notifications, and agent assignment.

2

Agent Executes Locally

Your registered CLI agent executes the command locally on its host machine according to the schedule. Results are synced to the cloud in real-time.

3

Monitor Results

View execution history, logs, and metrics in the dashboard. Get notified when jobs fail so you can take action quickly.

Common Use Cases

Database Backups

Run pg_dump or mysqldump daily

Build & Deploy

Run build scripts and deployment pipelines on schedule

Log Rotation

Compress and archive log files periodically

Health Checks

Run diagnostic scripts to monitor system health

Data Sync

Run rsync or custom sync scripts on a schedule

Cleanup Jobs

Remove old files, temp data, or expired cache entries

Tip

Use the Interactive UI (hookwatch ui) for a visual dashboard to manage and monitor all your cron jobs in real-time.

Related