Giter Site home page Giter Site logo

Comments (5)

chrisboulton avatar chrisboulton commented on September 26, 2024

Funny you ask - we actually wrote up a plugin for php-resque to do this a few weeks ago. You can do Resque_Scheduler::enqueueAt and Resque_Scheduler::enqueueIn.

We're using it at the moment, and I'll be open sourcing it shortly. Watch this space.

from php-resque.

rishav avatar rishav commented on September 26, 2024

Thanks Chris :) .. Otherwise I would have had to write it :) .. something on this line https://github.com/bvandenbos/resque-scheduler

from php-resque.

roynasser avatar roynasser commented on September 26, 2024

Hi Rishav, I wrote a similar thing, in fact it is a "WaitFor" plugin... Basically it will allow one job to be dependant on one or more other jobs. I use it for sending emails with attachments, and running an antivirus queue... basically the email send requires waiting for the antivirus to have run... so I send the virus queue job ids to the EMail queue, and it checks whether the status for the jobs passed to it as "dependent" is complete. if not it requeues the job.

If anyone is interested I can post here...

from php-resque.

chrisboulton avatar chrisboulton commented on September 26, 2024

@rishav - funny you mention that. It's exactly what we based the plugin on.

I've released the code in its current state here: https://github.com/chrisboulton/php-resque-scheduler. We're using it in production at BigCommerce right now, and have had no issues. There are about 20,000 jobs we've got scheduled for the future at the moment.

from php-resque.

rishav avatar rishav commented on September 26, 2024

Thanks Chris I ll take a look at it.. Thanks for doing such awesome work :)

from php-resque.

Related Issues (20)

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.