惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Microsoft Azure Blog
Microsoft Azure Blog
Engineering at Meta
Engineering at Meta
A
About on SuperTechFans
T
The Blog of Author Tim Ferriss
I
InfoQ
博客园_首页
G
Google Developers Blog
爱范儿
爱范儿
Last Week in AI
Last Week in AI
量子位
阮一峰的网络日志
阮一峰的网络日志
雷峰网
雷峰网
酷 壳 – CoolShell
酷 壳 – CoolShell
Vercel News
Vercel News
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
GbyAI
GbyAI
月光博客
月光博客
The GitHub Blog
The GitHub Blog
V
Visual Studio Blog
N
Netflix TechBlog - Medium
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 司徒正美
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 聂微东

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Scheduled agent runs are now more reliable
zvone187 · 2026-05-09 · via DEV Community

zvone187

Pazi's whole pitch on scheduled work is that you set it up once and trust it to run. That breaks the moment the result doesn't show up, and over the past two weeks we documented two ways it happens: the routing-inference failure and the bootstrap-latency dropout.

Pazi scheduled tasks now have a three-tier delivery fallback that closes both gaps. If the configured channel disappears mid-run, the run errors before its last step, or every destination is offline, the output still reaches the dashboard. The fix covers new and existing crons, and lands alongside a new pazi-set-cron skill that asks where you want delivery before any scheduled task is created.

Tier 1: resolve at creation

When an agent calls cron.add, the gateway picks a delivery channel before the entry is persisted. Explicit delivery.mode: "webhook" and "none" pass through untouched. systemEvent payloads also skip the resolver, since they don't need a channel.

For everything else, the resolver walks a four-step chain: explicitly set channel, then best configured external (Slack preferred), then the originating session, then the agent's persistent session. The pick is stamped on the cron, so openclaw cron list and the dashboard show where output will land before the first run.

The auto-detected case stamps bestEffort: true. If delivery later fails, the run isn't marked failed; it falls through to Tier 3.

Tier 2: re-check on every fire

The dispatcher re-evaluates the stamped channel against live config on every fire. That heals four cases:

  1. Legacy crons created before this resolver existed.
  2. Crons whose stamped channel was removed from config since creation.
  3. Crons whose stamped channel is now enabled: false.
  4. Crons edited between creation and dispatch in a way that re-introduced a webhook / none mode or non-agentTurn payload (the Tier 1 gates re-enforce here).

For cases (2) and (3), the dispatcher clears the dead channel and re-runs the resolver. The persisted record isn't mutated, so flipping a channel back on works without re-creating the cron. Every existing cron picks up this behaviour on its next fire.

Tier 3: enqueue to main chat

If every channel in the chain is unavailable, or the run errors before any channel is reached, the result is enqueued as a system event to the agent's main chat session. The user sees it as a chat message in the agent's main conversation on the dashboard — inline in the thread, not a toast or a separate notifications list.

The trigger is narrow: Tier 3 fires only when the run produced textual output that wasn't delivered. Heartbeat-only acks don't trigger it, so the main session doesn't fill with empty cron pings.

The pazi-set-cron skill

The fallback is the safety net. The new skill is what prevents most fallbacks from being needed in the first place. Before scheduling any task, the agent now asks the user where they want results delivered. Every time, not just on the first cron of a session. The answer becomes an explicit delivery.channel and delivery.to, so the cron has a contract instead of an inference.

The same pattern lands on the goal flow. The set_goal tool takes a deliveryChannel parameter, the tool description tells the agent to ask before filling it, and the frontend uses that value when materializing the goal's recurring check-ins.

Caveats

  • Explicit delivery.mode: "webhook" and "none" are never overridden, at creation or at runtime. Caller intent wins.
  • Tier 1 and Tier 2 apply only to agentTurn payloads. Internal systemEvent crons skip the chain.
  • delivery.channel: "last" and "webchat" aren't deliverable. The pazi-set-cron skill won't produce them; hand-rolled crons that use them are treated as unset.

On the roadmap

A per-cron delivery health timeline isn't there yet. Today's surface is openclaw logs and the system-event channel.

The runtime resolver also has no memory of the user's original preference. If an auto-detected channel is removed from config, the dispatcher rewrites the stamp to the next best, and that rewrite sticks. Re-adding the original channel won't pull the cron back. A "remember original preference" flag is a candidate refinement.

Pazi is an agent building and management platform built on OpenClaw. You can schedule tasks for your agents and have them work autonomously, 24/7. Build your first agent at pazi.ai.