swimtobird / queued-jobs
a queued jobs base on swoole
v0.1.2
2018-03-01 07:05 UTC
Requires
- php: >=7.0
- ext-redis: *
- ext-swoole: >=1.8.9
- predis/predis: ^1.1
This package is auto-updated.
Last update: 2025-03-08 16:25:59 UTC
README
运行
1.修改配置config/queue.php
2.启动服务
php ./swoole-jobs.php start >> log/system.log 2>&1
3.往队列推送任务
php ./test/testJobs.php
启动参数说明
NAME
php swoole-jobs - manage swoole-jobs
SYNOPSIS
php swoole-jobs command [options]
Manage swoole-jobs daemons.
WORKFLOWS
help [command]
Show this help, or workflow help for command.
restart
Stop, then start swoole-jobs master and workers.
start
Start swoole-jobs master and workers.
stop
Wait all running workers smooth exit, please check swoole-jobs status for a while.
exit
Kill all running workers and master PIDs.