hyperf / async-queue Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
@AsyncQueueMessage
Job的handle里的异常好像不会抛到配置文件exceptions.php,这里面相关的异常捕获里处理。
在handle里使用try catch可正常使用
如题
比如使用队列来更新数据库中的记录, 队列中的对象有时候会出现同一个的 class 的不同 mutation,不同的mutation 示例实际上只有处于队列末端的元素是最近的一次更新,其他的 mutation 可以忽略掉,甚至不调用 handle 进行处理,因此队列中需要根据 key 的来维护一个唯一性的元素。
报错信息:
Class "Hyperf\Coroutine\Concurrent" not found in /opt/vendor/hyperf/async-queue/src/Driver/Driver.php:47
降到 v3.0.15 是 引用的 use Hyperf\Utils\Coroutine\Concurrent; 是OK的
不同的job执行耗时不同,如果在config文件里面统一配置太不灵活了,希望可以在job里面类似于maxAttempts一样可以单独配置
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.