Skip to main content

Async Jobs Deployment

Deploy the async jobs server for production-grade agent and recipe execution with persistence, webhooks, and streaming.

Overview

The async jobs server provides:
  • HTTP API for job submission and management
  • Persistent job storage
  • Webhook notifications
  • SSE streaming for real-time progress
  • Idempotency support

Quick Start

Start the Server

Submit a Job

Docker Deployment

Dockerfile

Docker Compose

Configuration

Environment Variables

Authentication

The jobs server has two auth modes based on where it binds.
1

Localhost-only (default)

No key required, reachable only from the loopback interface.
2

Public bind

Set PRAISONAI_JOBS_BIND_HOST to a real interface and PRAISONAI_JOBS_API_KEY together.
A public bind without a key refuses every request except /health with 401 {"error": "PRAISONAI_JOBS_API_KEY required for non-localhost binding"}.

TEMPLATE.yaml Runtime Block

Configure job defaults in your recipe:

API Endpoints

Production Considerations

Load Balancing

For high availability, deploy multiple instances behind a load balancer:

Webhooks

Configure webhooks for job completion notifications:
Webhook payload:

Idempotency

Prevent duplicate job submissions:

Monitoring

Kubernetes Deployment

See Also