Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

remove worker stuff for now

  • Loading branch information...
commit 54b8ad9febfb9f5ed12631e1b707784c38327ca3 1 parent 6a51027
@smith smith authored
View
25 README.md
@@ -1,6 +1,6 @@
# gearman-node
-This module lets you create [Gearman](http://gearman.org/) clients and workers with [Node.js](http://nodejs.org/).
+This module lets you create [Gearman](http://gearman.org/) clients with [Node.js](http://nodejs.org/).
## Installation
@@ -28,27 +28,6 @@ You can run this on the command line like so:
$ node reverse-client.js
Sending job...
-### Workers
-
-Create a worker like this:
-
- var gearman = require("gearman"),
- myWorker = gearman.createWorker([ /* ...servers ... */]);
-
- myWorker.addAbility("reverse", function (data, job) {
- console.log("Received job: " + job.handle);
- // Reverse a string
- return String(data).split("").reverse().join("");
- });
-
- myWorker.work();
-
-Run it with:
-
- $ node reverse-worker.js
-
-This worker will connect to the server and receive and do work until the process is terminated.
-
### More
Additional Gearman tutorials and help can be found at http://gearmanhq.com/help/tutorials/.
@@ -57,8 +36,6 @@ Additional Gearman tutorials and help can be found at http://gearmanhq.com/help/
### Client
-### Worker
-
## Tests
To run the tests:
View
8 examples/reverse-worker.js
@@ -1,8 +0,0 @@
-var gearman = require("gearman"),
- myWorker = gearman.createWorker(["localhost:4730"]);
-
-myWorker.addAbility("reverse", function (data, job) {
- console.log("Received job: " + job.handle);
- // Reverse a string
- return String(data).split("").reverse().join("");
-});
View
2  package.json
@@ -1,7 +1,7 @@
{
"name": "gearman",
"version": "0.0.0",
- "description": "Client and worker libraries for Gearman",
+ "description": "Client library for Gearman",
"keywords": ["gearman", "job", "worker", "background"],
"homepage": "https://github.com/cramerdev/gearman-node",
"author": "Nathan L Smith <gearman@gearmanhq.com>",
View
0  test/test-worker.js
No changes.
Please sign in to comment.
Something went wrong with that request. Please try again.