Overview
Workflows are the core building blocks in Chronoverse. Each workflow has:- Kind: The type of workflow (HEARTBEAT or CONTAINER)
- Interval: Execution frequency in minutes (1-10,080 minutes, max 1 week)
- Payload: JSON configuration specific to the workflow type
- Build Status: Lifecycle state (QUEUED, STARTED, COMPLETED, FAILED, CANCELED)
HEARTBEAT Workflow
HEARTBEAT workflows perform HTTP health checks against specified endpoints. They’re ideal for monitoring service availability and uptime.Configuration
Parameters
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
timeout | string | No | 10s | Request timeout (max 5 minutes) |
endpoint | string | Yes | - | Target URL for health check |
expected_status_code | integer | No | 200 | Expected HTTP status (100-599) |
headers | object | No | {} | Custom HTTP headers |
How It Works
Example Usage
API Monitoring
HEARTBEAT workflows use HTTP GET requests only. The response body is not evaluated—only the status code matters.
CONTAINER Workflow
CONTAINER workflows execute custom Docker containers, enabling you to run arbitrary scripts, processes, and applications in isolated environments.Configuration
Parameters
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
timeout | string | No | 30s | Container execution timeout (max 1 hour) |
image | string | Yes | - | Docker image name and tag |
cmd | array | No | [] | Command and arguments to execute |
env | object | No | {} | Environment variables (KEY=VALUE) |
Execution Lifecycle
Log Streaming
CONTAINER workflows automatically capture and stream both stdout and stderr:Log Entry Format
- stdout
- stderr
Standard output from the container process
Example Usage
Data Processing Pipeline
Build Status States
All workflows progress through build states during the workflow worker’s image preparation phase:| Status | Description |
|---|---|
QUEUED | Workflow creation requested, pending build |
STARTED | Image pull/validation in progress |
COMPLETED | Ready for job execution |
FAILED | Build failed (invalid image, network error) |
CANCELED | Build was canceled by user |
Only workflows with
COMPLETED build status can execute jobs. Check the build status before scheduling manual jobs.Failure Handling
Both workflow types support automatic failure tracking:- max_consecutive_job_failures_allowed: Minimum 3, maximum 100
- When threshold is reached, the workflow is automatically terminated
- Successful job execution resets the consecutive failure counter
- Terminated workflows stop scheduling new jobs but retain historical data
Interval Configuration
Workflow intervals determine automatic job scheduling frequency:- Minimum: 1 minute
- Maximum: 10,080 minutes (1 week)
- Unit: Minutes (specified as integer)
Example Intervals
Next Steps
Job Scheduling
Learn about automatic and manual job triggers
Log Streaming
Real-time log access with Server-Sent Events