Download the PHP package alan/yii2-swoole-async without Composer
On this page you can find all versions of the php package alan/yii2-swoole-async. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download alan/yii2-swoole-async
More information about alan/yii2-swoole-async
Files in alan/yii2-swoole-async
Download alan/yii2-swoole-async
More information about alan/yii2-swoole-async
Files in alan/yii2-swoole-async
Vendor alan
Package yii2-swoole-async
Short Description yii2 framwork swoole async task
License Apache-2.0
Package yii2-swoole-async
Short Description yii2 framwork swoole async task
License Apache-2.0
Please rate this library. Is it a good library?
Informations about the package yii2-swoole-async
Yii2 SWOOLE ASYNC
-
特性
-
安装
composer require alan/yii2-swoole-async:v2.0.0
-
配置
1.0.x有消费者卡死的Bug, 解决的办法是升级了swoole到4.5.*的版本,使用Pool代替原来的swoole_service。
关于1.0.0升级到2.0的配置的变更,由于2.x采用Yii2框架自身的日志组件又要在消费任务的时候刷新LogId, 所以需要替换文件类,配置层级 composents => logs => targets => class: yii2\mq_task\components\FileTarget
建议添加到common\config\main-local.php文件添加
-
添加dcache表对应的配置(此配置用于查询表结构,用于ORM操作)
-
添加task表
-
添加启动脚本
-
启动
-
书写任务类
- 投递任务
-
All versions of yii2-swoole-async with dependencies
PHP Build Version
Package Version
Requires
yiisoft/yii2 Version
~2.0.22
yiisoft/yii2-redis Version ^2.0
ext-json Version *
ext-swoole Version *
ext-pcntl Version *
dragonmantank/cron-expression Version 3.*
pda/pheanstalk Version 4.*
swoole/ide-helper Version *
ext-posix Version *
yiisoft/yii2-redis Version ^2.0
ext-json Version *
ext-swoole Version *
ext-pcntl Version *
dragonmantank/cron-expression Version 3.*
pda/pheanstalk Version 4.*
swoole/ide-helper Version *
ext-posix Version *
The package alan/yii2-swoole-async contains the following files
Loading the files please wait ....