Comments (11)
// 第2个参数为延迟时间,第3个参数为延迟到期后如果任务没有被消费的最大生存时间
$ret = $client->push($message, 20, 604800);
604800 是最大生存时间,过了这个时间,这个任务就会消失的,所以你要设置在一个合理的时间内。
from delayer-client-php.
任务延迟时间20 s后,list没有这个任务,$client->pop返回还是false
from delayer-client-php.
你启动 delayer (https://github.com/mix-basic/delayer) 了么?配置的db是不是统一的?
from delayer-client-php.
服务端原来只能配置database = 0,选择其他不行
from delayer-client-php.
和你的客户端统一即可
from delayer-client-php.
不行,客户端选择哪个都可以写入任务,但是服务端选择0时候才处理,选择其他不处理任务,每次客户端和服务端都是选择相同的
from delayer-client-php.
服务端有处理db的:https://github.com/mix-basic/delayer/blob/master/logic/timer.go#L40
from delayer-client-php.
服务端database这个配置不生效,你再测试一遍看看,无论配置什么,都是select 0 的那个库
from delayer-client-php.
我有时间再检查一下
from delayer-client-php.
@shandingbaishi 已经修复 https://github.com/mix-basic/delayer/releases/tag/v1.0.4
from delayer-client-php.
辛苦作者了,感谢感谢
from delayer-client-php.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from delayer-client-php.