定制 pccomponentes/messenger-retry-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

  1. Install via composer

    composer require pccomponentes/messenger-retry-bundle
  2. 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

GitHub 信息

  • Stars: 0
  • Watchers: 5
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-08-11