{"id":8091,"date":"2026-11-21T23:09:05","date_gmt":"2026-11-21T23:09:05","guid":{"rendered":"https:\/\/jonjones.ai\/uncategorized\/daily-sunday-setup-ai-agent-scheduling-2026-11-22\/"},"modified":"2026-11-21T23:09:05","modified_gmt":"2026-11-21T23:09:05","slug":"daily-sunday-setup-ai-agent-scheduling-2026-11-22","status":"publish","type":"post","link":"https:\/\/jonjones.ai\/zh\/%e4%ba%ba%e5%b7%a5%e6%99%ba%e6%85%a7%e8%87%aa%e5%8b%95%e5%8c%96\/daily-sunday-setup-ai-agent-scheduling-2026-11-22\/","title":{"rendered":"\u9031\u65e5\u6e96\u5099\uff1a10 \u5206\u9418\u8d85\u6642\u6aa2\u67e5\uff08\u4e00\u6b21\u7de9\u6162\u7684\u591c\u9593\u8dd1\u6b65\u8b93\u6211\u932f\u5931\u4e86\u4e00\u7bc7\u90e8\u843d\u683c\u6587\u7ae0\uff0c\u800c\u65e5\u8a8c\u537b\u96bb\u5b57\u672a\u63d0\uff09"},"content":{"rendered":"<p>This week&#8217;s setup check takes ten minutes and one sheet of paper: <strong>for every agent you schedule, compare its timeout with the gap before the next agent starts.<\/strong> If the timeout is longer, one slow run can quietly cost you the next job.<\/p>\n<p>AI agent scheduling usually gets planned as a list of start times. The part people skip is the end times. I skipped it too, and on 7 October it cost me a blog post.<\/p>\n<h2>What happened on 7 October<\/h2>\n<p>My fleet runs on one schedule file: 12 daily slots plus a handful of weekly ones, 94 runs a week. A small Python loop reads the file and launches each job. It runs <strong>\u4e00\u6b21\u53ea\u505a\u4e00\u4efd\u5de5\u4f5c<\/strong>, so it waits for the current job to finish before it looks at the clock again. A slot only fires if the loop sees it within 2 minutes of its start time.<\/p>\n<p>On 6 October at 23:35, my nightly watchdog started. It found a failed outreach job and retried it on the spot, which took 25 minutes. The watchdog finished at <strong>00:11:55<\/strong>. The blog writer&#8217;s slot is 00:07, and its window closed at 00:09:59.<\/p>\n<p>So the blog writer never ran. And nothing complained. The scheduler log goes straight from &#8220;task completed&#8221; at 00:11:55 to &#8220;new day, resetting slots&#8221; at 00:12:25. There&#8217;s no line for 00:07 at all. 7 October is the only day since 15 June without a blog-writer log.<\/p>\n<p>No error and no crash, just a gap. That&#8217;s the worst kind of failure, because you only find it if you go looking.<\/p>\n<h2>The fix was one rule, not new code<\/h2>\n<p>I didn&#8217;t rewrite the scheduler. I added a rule to the watchdog&#8217;s instructions: before retrying anything late at night, estimate how long the retry will take from that job&#8217;s recent runs. If it would still be running at 00:09:59, don&#8217;t run it. Flag it for me in the morning report instead.<\/p>\n<p>Since then the blog writer has run every single day, 46 days in a row (8 October to today). The watchdog&#8217;s longest run in the last 30 days was 1.6 minutes.<\/p>\n<h2>What today&#8217;s check found<\/h2>\n<p>This morning (22 November 2026) I did the full version of the check. I listed every active slot for each day of the week, wrote the timeout next to it, and wrote the gap to the next slot next to that.<\/p>\n<ul>\n<li><strong>94 runs a week. 9 have a timeout longer than the gap after them.<\/strong><\/li>\n<li>7 of those 9 are the nightly watchdog: a 60-minute timeout, and 30 minutes until the blog writer. That&#8217;s the 7 October trap, now covered by the rule above.<\/li>\n<li>The other 2 are on Mondays: the 09:07 social poster and the 10:37 outreach query researcher. Both have 60-minute timeouts and only 30 minutes before the next job.<\/li>\n<\/ul>\n<p>Neither Monday job has come close. Their longest runs in the last 30 days were 11.7 and 7.7 minutes. So this is risk on paper, not a live problem. Fixing it means shortening those two timeouts or moving a slot, and that&#8217;s on my list, not done.<\/p>\n<p>One more surprise: the job writing this post. It has a 60-minute timeout, and on five days of the week, today included, the next job starts exactly 60 minutes later. On 19 November, with WordPress crawling, it ran 49 minutes and finished <strong>10.9 minutes<\/strong> before the next slot. That was the tightest gap in the whole fleet last month.<\/p>\n<h2>Run the check yourself (10 minutes)<\/h2>\n<ol>\n<li><strong>Write down every scheduled automation in start-time order,<\/strong> per day if your weekly jobs differ.<\/li>\n<li><strong>Next to each one, write its timeout,<\/strong> or &#8220;none&#8221; if it can run forever. &#8220;None&#8221; is your first fix.<\/li>\n<li><strong>Write the gap until the next job starts.<\/strong> Circle every row where the timeout is longer than the gap.<\/li>\n<li><strong>For each circled row, look up the longest real run.<\/strong> Most of the time it&#8217;s fine, and you&#8217;ll know by how much.<\/li>\n<li><strong>Decide what a skipped job looks like.<\/strong> If your scheduler drops a late slot silently, like mine does, something else has to compare &#8220;should have run&#8221; against &#8220;did run.&#8221; My watchdog does that every night.<\/li>\n<\/ol>\n<p>If you use n8n, Zapier or cron, the same logic applies. Anything that runs one job at a time, or locks a shared file, can lose a slot to a slow neighbor.<\/p>\n<p>\u8981\u9ede\uff1a <strong>schedule the end of every job, not just the start.<\/strong><\/p>\n<p>If you&#8217;re tidying your schedule anyway, here&#8217;s how I <a href=\"https:\/\/jonjones.ai\/zh\/%e4%ba%ba%e5%b7%a5%e6%99%ba%e6%85%a7%e8%87%aa%e5%8b%95%e5%8c%96\/%e6%af%8f%e6%97%a5%e6%98%9f%e6%9c%9f%e5%85%ad%e5%bf%ab%e6%8d%b7%e6%96%b9%e5%bc%8f%e4%ba%ba%e5%b7%a5%e6%99%ba%e6%85%a7%e4%bb%a3%e7%90%86%e9%97%9c%e9%96%89%e9%96%8b%e9%97%9c-2026-11-21\/\">switch an agent off without deleting it<\/a>, and what the <a href=\"https:\/\/jonjones.ai\/zh\/%e4%ba%ba%e5%b7%a5%e6%99%ba%e6%85%a7\/%e4%bb%a3%e7%90%86%e4%bd%9c%e6%a5%ad%e7%b3%bb%e7%b5%b1\/\">boring scheduler at the center of my agentic OS<\/a> looks like. If you&#8217;d like a second pair of eyes on your own fleet&#8217;s timing, <a href=\"https:\/\/jonjones.ai\/zh\/%e9%a0%90%e7%b4%84%e6%9c%83%e8%ad%b0\/\">\u9810\u7d04\u81ea\u52d5\u5316\u7b56\u7565\u6703\u8b70<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>\u5c07\u6bcf\u500b\u4ee3\u7406\u7a0b\u5f0f\u7684\u8d85\u6642\u6642\u9593\u8207\u4e0b\u4e00\u500b\u4efb\u52d9\u4e4b\u9593\u7684\u9593\u9694\u9032\u884c\u6bd4\u8f03\u3002 10 \u6708 7 \u65e5\uff0c\u4e00\u6b21\u6301\u7e8c 37 \u5206\u9418\u7684\u76e3\u63a7\u904b\u884c\u6084\u7121\u8072\u606f\u5730\u4f54\u7528\u4e86\u6211 00:07 \u7684\u90e8\u843d\u683c\u6642\u6bb5\u3002\u4eca\u5929\u7684\u6aa2\u67e5\u53c8\u767c\u73fe\u4e86 9 \u500b\u6709\u98a8\u96aa\u7684\u6642\u6bb5\u3002.<\/p>","protected":false},"author":2,"featured_media":8090,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_kadence_starter_templates_imported_post":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[44],"tags":[],"class_list":["post-8091","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai-automation"],"taxonomy_info":{"category":[{"value":44,"label":"AI Automation"}]},"featured_image_src_large":["https:\/\/jonjones.ai\/wp-content\/uploads\/2026\/11\/daily-sunday-setup-ai-agent-scheduling-20261122.jpg",1344,752,false],"author_info":{"display_name":"Jon Jones","author_link":"https:\/\/jonjones.ai\/zh\/author\/jonjonjones-ai\/"},"comment_info":0,"category_info":[{"term_id":44,"name":"AI Automation","slug":"ai-automation","term_group":0,"term_taxonomy_id":44,"taxonomy":"category","description":"","parent":0,"count":289,"filter":"raw","cat_ID":44,"category_count":289,"category_description":"","cat_name":"AI Automation","category_nicename":"ai-automation","category_parent":0}],"tag_info":false,"_links":{"self":[{"href":"https:\/\/jonjones.ai\/zh\/wp-json\/wp\/v2\/posts\/8091","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jonjones.ai\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jonjones.ai\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jonjones.ai\/zh\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jonjones.ai\/zh\/wp-json\/wp\/v2\/comments?post=8091"}],"version-history":[{"count":0,"href":"https:\/\/jonjones.ai\/zh\/wp-json\/wp\/v2\/posts\/8091\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/jonjones.ai\/zh\/wp-json\/wp\/v2\/media\/8090"}],"wp:attachment":[{"href":"https:\/\/jonjones.ai\/zh\/wp-json\/wp\/v2\/media?parent=8091"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jonjones.ai\/zh\/wp-json\/wp\/v2\/categories?post=8091"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jonjones.ai\/zh\/wp-json\/wp\/v2\/tags?post=8091"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}