Comments (9)
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.
I've fixed this in #94 by running the job in the parent if forking is not possible.
from php-resque.
OK, I like the approach in #93 better than my own, so I updated mine (#94) to match.
from php-resque.
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.
Composer should indeed warn me about the dependency. I'll install PCNLT to get it working.
from php-resque.
So, could this issue be closed, then?
from php-resque.
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.
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.
Haha, can't disagree with that. :) (We also use php-resque on Ubuntu and it's great.)
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.