Comments (10)
@barock19, if you're still using php-resque on Heroku, are you still experiencing these problems?
from php-resque.
I suspect that this is because the original php process detaches. This leaves nothing for heroku to monitor, so they believe that the worker has crashed. It'd be nice if php-resque didn't deamonize (or had an option not to) when you launch multiple workers at once. That would allow things like this to work better. I hope I made sense, if more explanation is needed, please let me know. :)
from php-resque.
I have made some changes to the startup script that seem to be related, especially if @jbrower's comment is accurate. I've changed the forking so that the parent process stays alive and monitors the children it spawned. If any of the children die prematurely for any reason, it spins up a new one to replace it. If, however, it receives a signal to close, it asks all of its children to do the same, then waits for them to shut down before exiting itself.
Is this a setup which would be desired for all users, or just for automated systems such as Heroku or Pagodabox?
from php-resque.
It's something that I would certainly like. :)
from php-resque.
Just realized that the version I was developing against is 1.2. It looks as though the changes I've made will still work with 1.3, but I haven't tested how well they do/don't interact with Composer.
from php-resque.
@jbrower i ported over the resque-pool gem at one point, which does basically the same. It manages the pool of workers. The docs listed are from the original resque-pool project, but i kept the same functionality. https://github.com/ebernhardson/php-resque-pool
from php-resque.
I think that @danhunsaker might have already developed a solution that's built in and will be making a pull request soon. It does an excellent job of keeping things going and letting you know when something isn't working quite right.
from php-resque.
@danhunsaker -- I'm also interested in your patch that keeps the parent alive to monitor the children.
from php-resque.
Funny you should mention that. I just now submitted a pull request (#83) for that exact functionality. 😁
from php-resque.
Awesome -- looking forward to trying it.
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.