ironflow-worker
HTTP-based background worker for ironflow. Polls the API server for pending workflow runs, executes them locally, and reports results back.
How it works
- The worker polls
GET /api/v1/internal/runs/nextfor queued runs - Claims a run via
POST /api/v1/internal/runs/:id/claim - Executes the workflow using the registered
WorkflowHandler - Pushes step logs in real-time via
POST /api/v1/internal/runs/:id/logs - Reports final status (completed/failed) back to the API
Communication is authenticated with a static WORKER_TOKEN.
Feature flags
| Feature | Description |
|---|---|
prometheus |
Expose worker execution metrics |
heartbeat |
Periodic heartbeat to the API server |
Quick start
use Arc;
use Duration;
use WorkerBuilder;
use ClaudeCodeProvider;
async
License
MIT License - see LICENSE for details.