<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>任务调度 on PlumePHP</title><link>https://plumephp.com/tags/%E4%BB%BB%E5%8A%A1%E8%B0%83%E5%BA%A6/</link><description>Recent content in 任务调度 on PlumePHP</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Mon, 28 Sep 2026 10:00:00 +0800</lastBuildDate><atom:link href="https://plumephp.com/tags/%E4%BB%BB%E5%8A%A1%E8%B0%83%E5%BA%A6/index.xml" rel="self" type="application/rss+xml"/><item><title>Laravel 队列与任务调度实战：Job、驱动、失败重试与 Cron</title><link>https://plumephp.com/php-laravel-queues-scheduling/</link><pubDate>Mon, 28 Sep 2026 10:00:00 +0800</pubDate><guid>https://plumephp.com/php-laravel-queues-scheduling/</guid><description>&lt;h2 id="引言"&gt;引言&lt;/h2&gt;
&lt;p&gt;发送邮件、生成报表、调用第三方 API——这些「慢但必要」的事如果同步做，接口就慢了。&lt;strong&gt;队列&lt;/strong&gt;把它们扔到后台异步处理，让接口秒回。Laravel 的队列体系（Job + Worker + 驱动）和任务调度（Scheduler）是每个生产应用的地基。本文从架构讲起，覆盖 Job 定义、失败重试、幂等、调度与监控。&lt;/p&gt;</description></item><item><title>分布式任务调度深度解析：XXL-Job、ElasticJob 与 PowerJob 原理与生产落地</title><link>https://plumephp.com/distributed-job-scheduling/</link><pubDate>Sun, 27 Sep 2026 09:30:00 +0800</pubDate><guid>https://plumephp.com/distributed-job-scheduling/</guid><description>&lt;p&gt;定时任务几乎是每个业务系统都绕不开的需求：日终对账、定时报表、数据清理、消息补偿、优惠券过期处理。单机时代一个 &lt;code&gt;@Scheduled&lt;/code&gt; 或 &lt;code&gt;cron&lt;/code&gt; 就能搞定，但系统一旦水平扩展成多节点，就会遇到同一个问题——&lt;strong&gt;同一份定时任务被多个节点同时执行&lt;/strong&gt;。分布式任务调度解决的不只是&amp;quot;按时触发&amp;quot;，更是&amp;quot;在多节点下只跑一次、可分片、可容错&amp;quot;。本指南讲透调度中心的架构、主流框架的原理与选型。&lt;/p&gt;</description></item></channel></rss>