ADK Durable Session Demo

Real Checkpoint-Based Persistence for Long-Running Agent Tasks

All tasks are REAL - Writing to BigQuery & GCS
πŸ—„οΈ
BigQuery
test-project-0728-467323.adk_metadata
☁️
Cloud Storage
gs://test-project-0728-467323-adk-checkpoints
πŸ”
SHA-256 Verified
Checkpoint integrity guaranteed

🎯 Choose a Real Task

Each task simulates a real long-running data processing job with actual checkpoints saved to GCP.

😊
Sentiment Analysis
Analyzes text data to determine emotional tone. Processes customer reviews, social media posts, and feedback.
Output: Positive/Negative ratios, key themes, trend analysis
πŸ”
Anomaly Detection
Scans datasets for unusual patterns and outliers. Identifies potential fraud, system errors, or data quality issues.
Output: Anomaly count, severity levels, root cause hints
πŸ“ˆ
Trend Analysis
Identifies patterns and trends over time. Forecasts future values based on historical data.
Output: Growth rates, seasonal patterns, forecasts
🎨
Data Clustering
Groups similar data points together. Segments customers, categorizes content, identifies patterns.
Output: Cluster count, segment profiles, separation metrics
60s
Checkpoints saved every 10 seconds

Task will create real checkpoints in BigQuery & GCS

πŸ“Š Live Task Monitor

⏸️

No task running

Select a task and click Start

πŸ’₯ Simulate Crash

Simulate a server crash to test checkpoint recovery. The task state is safely stored!

πŸ“ Checkpoint Timeline

Real checkpoints being written to BigQuery & GCS

πŸ“­

No checkpoints yet

Start a task to see real checkpoints appear

πŸ”§ How Durable Checkpointing Works

1️⃣
Task Runs
Long-running analysis processes data in chunks
2️⃣
Checkpoint Created
Every 10s, state is serialized and compressed
3️⃣
Two-Phase Commit
Blob β†’ GCS, then metadata β†’ BigQuery
4️⃣
Recovery Ready
If crash occurs, resume from last checkpoint

πŸ“Š Verify in BigQuery

SELECT session_id, checkpoint_seq, created_at, trigger, size_bytes
FROM `test-project-0728-467323.adk_metadata.checkpoints`
ORDER BY created_at DESC LIMIT 10;

πŸ“‹ Real Sessions in BigQuery

These sessions are stored in BigQuery. Click "Select" to resume any failed session.

Session ID Status Checkpoints Last Updated Actions
Loading from BigQuery...