pccomponentes/messenger-retry-bundle
最新稳定版本:v2.1.0
Composer 安装命令:
composer require pccomponentes/messenger-retry-bundle
包简介
Symfony Bundle for retry policy in Symfony Messenger
README 文档
README
This is a Bundle to add the ability to choose the retry policy based on the type of message you are trying to process.
Note: Messages should ultimately inherit from Message.
Installation
-
Install via composer
composer require pccomponentes/messenger-retry-bundle
-
Write the bundle configuration file (
config/packages/messenger_retry.yaml) indicating the retry policies for each message class and the action you want to execute in each of them. An example of its content is:messenger_retry: - max_retries: 5 delay_milliseconds: 2000 multiplier: 2 max_delay_milliseconds: 2800000 msg_types: - PcComponentes\Ddd\Application\Command: auto # - PcComponentes\Ddd\Application\Command: always_retry # - PcComponentes\Ddd\Application\Command: never_retry
This file will be modified to add or remove any retry policies needed for the project it is used in.
统计信息
- 总下载量: 41.87k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-08-11