From bac68babace383fef8b083ddba82dad2d561bdde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=93=AD=E6=98=95?= <715557344@qq.com> Date: Thu, 14 Mar 2024 18:23:13 +0800 Subject: [PATCH] Release v3.1.13 (#6596) * Update quick-start.md (#6585) * Upgrade docs for command (#6587) * Added warn comments for async queue message. (#6592) --------- Co-authored-by: Kelvin Romero <8683337+kelvinromero@users.noreply.github.com> Co-authored-by: guandeng --- src/Annotation/AsyncQueueMessage.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Annotation/AsyncQueueMessage.php b/src/Annotation/AsyncQueueMessage.php index 59febe0..8e43fc2 100644 --- a/src/Annotation/AsyncQueueMessage.php +++ b/src/Annotation/AsyncQueueMessage.php @@ -14,6 +14,11 @@ use Attribute; use Hyperf\Di\Annotation\AbstractAnnotation; +/** + * Don't call the methods with this annotation in async queue environment. + * Because the execution or delivery of a message depends on whether it is currently in an async queue environment, + * re delivery in an async queue environment will be treated as a direct execution of the message. + */ #[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD)] class AsyncQueueMessage extends AbstractAnnotation {