Giter Site home page Giter Site logo

Comments (5)

chrisboulton avatar chrisboulton commented on September 26, 2024

We sure have, and it's working well for us.

These json_decode errors that I've seen a few issues on recently are starting to alarm me. Which version of PHP are you using in production? Is it the same as development?

Can you possibly modify lib/Resque.php, and in the pop method, add an fwrite(STDOUT, "pop: $item\n"); before the return statement? That way we can have a look at what data we're getting back.

from php-resque.

hSATAC avatar hSATAC commented on September 26, 2024

I printed out $item
It shows

array (
  0 => 'default',
)

which shouldn't be an array since it came out from lpop

and I went into redis-cli check the job queue, the args are all good.

I think when it lpop somehow it grabbed resque:queues
instead of resque:queue:default

from php-resque.

hSATAC avatar hSATAC commented on September 26, 2024

I did some experiments.
First I edit /etc/hosts, point queue.mydomain.com to 127.0.0.1
and try start/stop php-resque 10 times, all good.

Then I point back queue.mydomain.com to other server
and try start/stop php-resque 10 times

I found that this situation is not guaranteed. For 1, 2 times it was all good.
And those 8 times with json_decode errors, I found that when it started, it gave some error:

Notice: Undefined offset:  1 in /home/ash_wu/miiicasa/lib/sdk/php-resque/lib/Resque/Worker.php on line 102
PHP Notice:  Undefined offset:  2 in /home/ash_wu/miiicasa/lib/sdk/php-resque/lib/Resque/Worker.php on line 450

I don't know if there are some connections between these error msgs.

from php-resque.

chrisboulton avatar chrisboulton commented on September 26, 2024

It looks like we've got the same problem that we're working on over in issue #32 - #32

from php-resque.

hSATAC avatar hSATAC commented on September 26, 2024

Following #32

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.