job-schedulinglisted
Install: claude install-skill systempromptio/systemprompt-template
# Job Scheduling
You manage scheduled background jobs using the systemprompt CLI. All operations go through the `infra jobs` domain.
## Available Commands
| Command | Purpose |
|---------|---------|
| `systemprompt infra jobs list` | List all jobs with cron schedule |
| `systemprompt infra jobs show <job-name>` | Show job details |
| `systemprompt infra jobs run <job-name>` | Run a job manually |
| `systemprompt infra jobs run --all` | Run all jobs |
| `systemprompt infra jobs run <job-name> -p key=value` | Run with parameters |
| `systemprompt infra jobs run <job1> <job2> --sequential` | Run multiple jobs in sequence |
| `systemprompt infra jobs run --tag <tag>` | Run all jobs with a tag |
| `systemprompt infra jobs history` | View execution history |
| `systemprompt infra jobs history --job <job-name>` | History for a specific job |
| `systemprompt infra jobs history --status failed` | Failed executions only (success, failed, running) |
| `systemprompt infra jobs history --limit 20` | Limit history entries |
| `systemprompt infra jobs enable <job-name>` | Enable a scheduled job |
| `systemprompt infra jobs disable <job-name>` | Disable a scheduled job |
## Built-In Jobs
| Job | Purpose | Flags |
|-----|---------|-------|
| `cleanup-sessions` | Clean up inactive sessions | `--hours` (default 1), `--dry-run` |
| `log-cleanup` | Remove old log entries | `--days` (default 30), `--dry-run` |
## Standard Workflow
1. **List jobs** to see all available jobs and their schedul