misterion / ko-worker Goto Github PK
View Code? Open in Web Editor NEWKo-worker project is a PHP library that aims to abstract queue and RPC messaging patterns that can be implemented over RabbitMQ.
License: MIT License
Ko-worker project is a PHP library that aims to abstract queue and RPC messaging patterns that can be implemented over RabbitMQ.
License: MIT License
I got:
PHP Fatal error: Class 'AMQPConnection' not found in vendor/misterion/ko-worker/src/Ko/RabbitMq/ConnectionFactory.php on line 86
using latest master branch.
Looks like I am missing ext-amqp, consider moving it to required section.
Hello!
Please look at https://github.com/queue-interop/queue-interop project. Using interfaces from it allows us reuse some implementations like enqueue, which supports a lot of transports. You can outsource some code
Hi,
I'd like to suggest some improvement to ko-process:
In normal situation when we need to shutdown worker process we are sending to it SIGTERM signal.
The child worker with "waiting next envelope" status cann't to be closed cause need to process some message before it (and if message rate is slow, we can wait worker shutdown for a long time) . Could you send to the child SIGKILL signal in that situation?
In current version we always restart child process on exception in ActionInterface execution. This behaviour should be tunable.
Hi,
i tried your example code, but throw exception follow that,
./ko -c ./examples/ReceiverClass/config.yaml -q user -w 1 -f 1
PHP Fatal error: Uncaught exception 'InvalidArgumentException' with message 'Executor class \Ko\Examples\ReceiverClass\Actions\HelloWorld should implements Ko\Worker\ActionInterface' in /data/web_data/hanuri/htdocs/front_end/ko-worker/vendor/misterion/ko-worker/src/Ko/Worker/Child.php:77
AND
./ko -c ./examples/BasicSenderReceiver/config.yaml -q user -w 1 -f 1
PHP Fatal error: Uncaught exception 'DomainException' with message 'You must declare a class for the job' in /data/web_data/hanuri/htdocs/front_end/ko-worker/vendor/misterion/ko-worker/src/Ko/Worker/Application.php:259
how do i fix it?
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.