From 034fe05690ca4afa3796417e1cc1397537fc00cb Mon Sep 17 00:00:00 2001 From: "943891935@qq.com" <943891935@qq.com> Date: Thu, 12 Mar 2026 01:39:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9A=E6=97=B6=E4=BB=BB=E5=8A=A1-Command?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=EF=BC=8C=E5=8F=AA=E6=9C=89=E7=AC=AC=E4=B8=80?= =?UTF-8?q?=E6=AC=A1=E6=88=90=E5=8A=9F=EF=BC=8C=E5=90=8E=E7=BB=AD=E9=83=BD?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/zh/faq/index.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/zh/faq/index.md b/docs/zh/faq/index.md index c5c0a14..bac5eed 100644 --- a/docs/zh/faq/index.md +++ b/docs/zh/faq/index.md @@ -136,3 +136,15 @@ volumes: - `composer.json`、`composer.lock`和`.env`单独挂载,确保依赖配置和环境变量可以实时同步 采用这种配置后,应用启动速度可以显著提升。 + +--- + +## 定时任务-Command类型,只有第一次成功,后续都失败问题。 + +调用目标,需要加上--disable-event-dispatcher: ture配置。 +即crontab表中的value值为: +```json +{"command":"mine:xxx","--disable-event-dispatcher":true} +``` + +详细文档:https://hyperf.wiki/3.1/#/zh-cn/crontab