beanstalkdpheanstalk

pheanstalk:put will be blocking when reserve() is blocking


I am so confused why put will be blocking when reserve() is blocking in pheanstalk, I have write two function:

  1. put function :

enter image description here

  1. worker function:

enter image description here

both of these are on a same host, but when i exec the function run(), if it's blocking; the function put() will blocking too, I am so confused.


Solution

  • er, because the cron job write after the session instance; and session add a file lock.