Net_Gearman v0.0.1 pre-release alpha RC ... you get the idea.

From: Date: Sat, 20 Oct 2007 00:11:48 +0000
Subject: Net_Gearman v0.0.1 pre-release alpha RC ... you get the idea.
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-48271@lists.php.net to get a copy of this message
I've been working on Gearman for the upcoming images section here at Digg and, since we're a pure PHP shop (we're hiring!), I set off to create a PHP client that I plan on submitting to PEAR. It's based on the Python library (don't get me started on PHP's lack of a extendable socket class). At any rate here's the code: http://bugs.joestump.net/code/Net_Gearman/ And you can install the package by running: pear install "http://bugs.joestump.net/code/Net_Gearman/Net_Gearman-0.0.1.tgz" Things that I'm not currently doing very well and would love input (or patches!) on: 1.) Does it even work right? I mean, my tests run fine and it appears to be running things in parallel, but is it solid? 2.) It's not fully unit tested nor documented fully. 3.) I'm not doing a very good job of checking/validating sockets after they're opened to see if they go away. 4.) I don't do retries in Net_Gearman_Task/Set. 5.) I didn't implement the worker hooks that are ran at various stages of running a job (the Python library does this). This is a great way to implement logging listeners and I hope to implement it at some point. Thoughts? Suggestions? Outright flames? --Joe

« previous php.pear.dev (#48271) next »