Launch scripts, schedule recurring tasks, and monitor executions across your entire fleet from a single console.
# Overview
The job engine is the core automation layer of Reap3r. It lets you execute arbitrary scripts on one or many agents, schedule recurring maintenance tasks, and chain actions into reusable playbooks. Every execution is logged, auditable, and can inject secrets from the vault at runtime.
3 runtimes
Bash, PowerShell, Python
Group targeting
Run on tags, groups, or all
Cron scheduling
Recurring with retry logic
# Creating a job
Navigate to Jobs → New Job in the console, or use the API. A job consists of a script body, a target scope, an optional schedule, and execution parameters.
Tip: Use the dry_run: true parameter to preview which agents will be targeted before executing. The dry run returns the agent list without dispatching the script.
# Script types
The agent supports three script runtimes. The runtime is selected per-job and determines how the script body is interpreted on the target endpoint.
Bash
Linux / macOS
Executed via /bin/bash. Full access to the system shell. Ideal for package management, service control, file operations.
#!/bin/bash
systemctl restart nginx
echo "Done"
PowerShell
Windows
Executed via pwsh or powershell.exe. .NET access, WMI queries, registry manipulation, Windows service management.
Target all agents that match a tag. Supports AND/OR logic.
"targets": { "tag": "linux-servers" }
By group
Target all agents within an organizational group.
"targets": { "group": "paris-office" }
By OS
Target all agents running a specific operating system.
"targets": { "os": "windows" }
All agents
Broadcast to every online agent. Requires admin privilege.
"targets": { "all": true }
# Scheduling
Jobs can be scheduled using standard cron expressions. Scheduled jobs are managed by the server and dispatched at the configured time to all targeted agents that are online.
schedule examples
0 2 * * *Every day at 02:00 UTC
0 */6 * * *Every 6 hours
30 9 * * 1-5Weekdays at 09:30 UTC
0 0 1 * *First day of each month at midnight
Retry on failure
Set retry_count (1-5) and retry_delay (seconds). Failed executions are retried automatically with exponential backoff.
Offline agents
By default, scheduled jobs skip offline agents. Enable queue_offline: true to deliver the job when the agent reconnects within the TTL window.
# Variables & secrets
Jobs can reference vault secrets and custom variables. Secrets are injected at runtime and never appear in logs or audit trails.
Security: Secrets are decrypted server-side and transmitted to the agent over mTLS. They are injected as environment variables and scrubbed from all output logs. The agent never writes secrets to disk.
# Monitoring execution
Every job execution is tracked in real time. The console shows live status per agent, stdout/stderr output, exit codes, and duration.
execution statuses
pendingJob dispatched, waiting for agent to pick up.
runningAgent is executing the script. Stdout streams in real time.
successScript exited with code 0. Output captured.
failedScript exited with non-zero code or timed out.
cancelledJob was manually cancelled before completion.
Use GET /api/jobs/:id/executions to poll execution status programmatically, or subscribe to the job.execution.completed webhook event for real-time notifications.
# Playbook library
Playbooks are reusable job templates that chain multiple steps with conditions and approval gates. Pre-built playbooks are available for common scenarios.
Onboarding
4 steps
Install baseline software, apply security policy, register in monitoring, notify team.
Patch Tuesday
5 steps
Stage updates, reboot window check, install patches, validate and report.