Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added in-handler logging to the todo list.

Tweaked an example for correctness.
  • Loading branch information...
commit 2b7801b4c5583fb0b7d28e01102624343cb66571 1 parent 38ce9f6
@ceejbot authored
Showing with 5 additions and 3 deletions.
  1. +3 −1 README.md
  2. +2 −2 examples/emitjobs.js
View
4 README.md
@@ -276,4 +276,6 @@ If the handler paths don't start with `/` the current working directory will be
## TODO
-Handle DEADLINE_SOON from the server.
+* Handle DEADLINE_SOON from the server.
+
+* Hacky manner of exposing logging to the job handlers is hacky. Also too tied to the specific logging engine. Replace.
View
4 examples/emitjobs.js
@@ -22,9 +22,9 @@ var job2 = {
var emitter = new fivebeans.client(host, port);
emitter.connect(function(err)
{
- emitter.use('testtube', function(err, count)
+ emitter.use('testtube', function(err, tname)
{
- console.log("watching "+count+"tube(s)");
+ console.log("using "+tname);
emitter.put(0, 0, 60, JSON.stringify(['testtube', job1]), function(err, jobid)
{
console.log('queued a string reverse job in testtube: '+jobid);
Please sign in to comment.
Something went wrong with that request. Please try again.