PHP code example of eric-strive / amqp-retry
1. Go to this page and download the library: Download eric-strive/amqp-retry library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
eric-strive / amqp-retry example snippets
bash
php bin/hyperf.php vendor:publish eric-strive/amqp-retry
bash
php bin/hyperf.php migrate
bash
php bin/hyperf.php amqp:retry exchange routing_key
exchange 交换器 可不填 不填就会重试所有状态为error和terminated
routing_key 路由键名称
bash
config/autoload/amqp.php 配置文件中将 close_on_destruct 改为 false ;执行重试脚本时会报错