hfcorriez / php-kue Goto Github PK
View Code? Open in Web Editor NEWKue is a priority job queue backed by redis, built for PHP.
Kue is a priority job queue backed by redis, built for PHP.
I'm going to use it on production with one part on php and another on nodejs (+kue).
Is it stable enough to work with basic jobs?
It seems this project is more complete than the README.md suggests :)
Please add this snippet to README.md:
// Process the `email` type job
$kue->on('process:email', function($job){
$data = $job->data
$job->progress(50); // communicate progress to queue 1..100
if( ! mail($data['to'], $data['subject'], $data['body']) ){
// uncaught exception will mark a job as failed and/or increase its attempt-variable
throw new Exception("FOO_BAR");
}
});
optionally you can call the following to modify the job status directly:
$job->failed()
$job->complete()
$job->inactive()
$job->active()
Since you are supporting chaining, hence most of the Job functions should have
return $this;
in the end.
For eg in function priority
Hi,
Getting this error when trying to create a kue object on line https://github.com/hfcorriez/php-kue/blob/master/lib/Kue/Kue.php#L64, Can someone help?
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.