Giter Site home page Giter Site logo

Comments (9)

rajibahmed avatar rajibahmed commented on September 26, 2024

Yes we have the same issue. It is related to #93
I think library can add required extension on composer file. Then everyone knows that you will need pcntl extension.

from php-resque.

richardkmiller avatar richardkmiller commented on September 26, 2024

I've fixed this in #94 by running the job in the parent if forking is not possible.

from php-resque.

richardkmiller avatar richardkmiller commented on September 26, 2024

OK, I like the approach in #93 better than my own, so I updated mine (#94) to match.

from php-resque.

rajibahmed avatar rajibahmed commented on September 26, 2024

But to me, if your system does not support forking via pcnlt. You will lose the benefit of using multiple workers at the same time. It is needed to spawn multiple workers.
We had the same issue recently using PCNLT on production. We did not install PCNLT on the application machine. We had separate VM with PCNTL installed and using created api to create jobs. I Know this may not relate to the problem.

My argument composer should force PCNLT extension check.

from php-resque.

ruudk avatar ruudk commented on September 26, 2024

Composer should indeed warn me about the dependency. I'll install PCNLT to get it working.

from php-resque.

danhunsaker avatar danhunsaker commented on September 26, 2024

So, could this issue be closed, then?

from php-resque.

richardkmiller avatar richardkmiller commented on September 26, 2024

FWIW, I agree with providing a warning in Composer since most people will run php-resque on *nix machines. However, I still like the patches in #93 or (my) #94 which allow php-resque to run even if it can't fork.

from php-resque.

danhunsaker avatar danhunsaker commented on September 26, 2024

I agree to a point - I'd prefer to have something similar to forking on non-forking systems that allows each job to be executed in an isolated space, where fatal errors won't bring the whole Resque engine down. There are a large number of other reasons to execute jobs in an isolated space, but most of them have to do with avoiding strange issues from pollution of the execution environment. If there was a way to process jobs in an isolated space that didn't rely on forking, but still provided the advantages we use forking for in the first place, I'd be all for it.

Until then, I'll just fall back on my standard (though somewhat rude) "Use a real OS". 😄

from php-resque.

richardkmiller avatar richardkmiller commented on September 26, 2024

Haha, can't disagree with that. :) (We also use php-resque on Ubuntu and it's great.)

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.