Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions docs/zh/faq/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Comment on lines +144 to +147
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

修正文案里的布尔值拼写和配置写法。

Line 144 的 ture 是明显笔误;另外这里写成 --disable-event-dispatcher: ture 也容易让人误解成命令行参数语法,但下方示例实际是 JSON 键值。建议直接改成“在 value 中增加 --disable-event-dispatcher 并设为 true”,避免读者照抄错误配置。

✏️ 建议修改
-调用目标,需要加上--disable-event-dispatcher: ture配置。
-即crontab表中的value值为:
+调用目标时,需要在 crontab 表的 `value` 中增加 `--disable-event-dispatcher`,并将其设置为 `true`。
+示例如下:
 ```json
 {"command":"mine:xxx","--disable-event-dispatcher":true}
</details>

<details>
<summary>🤖 Prompt for AI Agents</summary>

Verify each finding against the current code and only fix it if needed.

In @docs/zh/faq/index.md around lines 144 - 147, Fix the typo "ture" to "true"
and reword the sentence to clarify that "--disable-event-dispatcher" is a JSON
key inside the crontab entry's value rather than a CLI flag; specifically,
change the text around "调用目标,需要加上--disable-event-dispatcher: ture配置。" to
something like "在 value 中增加 "--disable-event-dispatcher" 并设为 true",and ensure
the JSON example uses the correct boolean form
{"command":"mine:xxx","--disable-event-dispatcher":true} so readers don't
confuse it with command-line syntax.


</details>

<!-- fingerprinting:phantom:triton:grasshopper -->

<!-- This is an auto-generated comment by CodeRabbit -->

```

详细文档:https://hyperf.wiki/3.1/#/zh-cn/crontab
Loading