Giter Club home page Giter Club logo

php-kue's People

Contributors

hfcorriez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

php-kue's Issues

How much is it stable?

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?

request update README.md: how to report succes/failure of job when processing

It seems this project is more complete than the README.md suggests :)

Please add this snippet to README.md:

Job failure / progress

// 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()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.