Skip to content

Commit bac68ba

Browse files
limingxinleokelvinromeroguandeng
authored
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 <guandeng@Hotmail.com>
1 parent 9b3789c commit bac68ba

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Annotation/AsyncQueueMessage.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
use Attribute;
1515
use Hyperf\Di\Annotation\AbstractAnnotation;
1616

17+
/**
18+
* Don't call the methods with this annotation in async queue environment.
19+
* Because the execution or delivery of a message depends on whether it is currently in an async queue environment,
20+
* re delivery in an async queue environment will be treated as a direct execution of the message.
21+
*/
1722
#[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD)]
1823
class AsyncQueueMessage extends AbstractAnnotation
1924
{

0 commit comments

Comments
 (0)