Comments (5)
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.
Thanks Chris :) .. Otherwise I would have had to write it :) .. something on this line https://github.com/bvandenbos/resque-scheduler
from php-resque.
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.
@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.
Thanks Chris I ll take a look at it.. Thanks for doing such awesome work :)
from php-resque.
Related Issues (20)
- The project has been abandoned? HOT 8
- Is it possible to add a job if it does not exists?
- Job Not Found Error specifications
- Could add a event before work reserve
- QUEUE=mail: Command not found. HOT 2
- Still job not found HOT 4
- Couldnt change the redis host while running the worker HOT 2
- 为什么不增加 redis Auth HOT 1
- event listener for any job HOT 1
- Resque_Job_Status Throughout STATUS_RUNNING
- PHP Warning: fread(): Length parameter must be greater than 0 HOT 2
- Please archive this repository -> This package is abandoned and no longer maintained. The author suggests using the resque/php-resque package instead. HOT 7
- QUEUE=message php vendor/bin/resque HOT 4
- add delay jobs HOT 1
- should check pcntl_wifexited first before pcntl_wexitstatus
- 项目还有人维护吗? HOT 3
- Why not "break"? HOT 1
- The documentation for 'scan' is described HOT 6
- Stat namespace growing
- PHP Deprecated: implode(): Passing glue string after array is deprecated.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-resque.