Giter Site home page Giter Site logo

Comments (10)

chrisboulton avatar chrisboulton commented on September 26, 2024

@barock19, if you're still using php-resque on Heroku, are you still experiencing these problems?

from php-resque.

jbrower avatar jbrower commented on September 26, 2024

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.

danhunsaker avatar danhunsaker commented on September 26, 2024

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.

jbrower avatar jbrower commented on September 26, 2024

It's something that I would certainly like. :)

from php-resque.

danhunsaker avatar danhunsaker commented on September 26, 2024

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.

ebernhardson avatar ebernhardson commented on September 26, 2024

@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.

jbrower avatar jbrower commented on September 26, 2024

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.

richardkmiller avatar richardkmiller commented on September 26, 2024

@danhunsaker -- I'm also interested in your patch that keeps the parent alive to monitor the children.

from php-resque.

danhunsaker avatar danhunsaker commented on September 26, 2024

Funny you should mention that. I just now submitted a pull request (#83) for that exact functionality. 😁

from php-resque.

richardkmiller avatar richardkmiller commented on September 26, 2024

Awesome -- looking forward to trying it.

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.