Using the Trigger.dev Realtime API to trigger and/or subscribe to runs in real-time.
Trigger.dev Realtime allows you to trigger, subscribe to, and get real-time updates for runs. This is useful for monitoring runs, updating UIs, and building real-time dashboards.You can subscribe to real-time updates for different scopes of runs:
Specific runs - Monitor individual run progress by run ID
Runs with specific tags - Track all runs that have certain tags (e.g., all runs tagged with user:123)
Batch runs - All runs within a specific batch
Trigger + subscribe combos - Trigger a task and immediately subscribe to its run (frontend only)
Once subscribed, you’ll receive the complete run object with automatic real-time updates whenever the run changes, including:
Status changes - queued → executing → completed, etc.
Metadata updates - Custom progress tracking, status updates, user data, etc. (React hooks | backend)
Tag changes - When tags are added or removed from the run
Stream data - Real-time data chunks from your tasks, perfect for AI/LLM streaming (React hooks | backend)
Use our React hooks to build real-time UIs that update as runs execute. Ideal for progress bars, status indicators, and live dashboards.→ See our React hooks guide
Use our server-side SDK to subscribe to runs from your backend code, other tasks, or serverless functions. Perfect for triggering workflows, sending notifications, or updating databases based on run status changes.→ See our Backend guide