Permalink
Browse files

Edited lib/Data/Consumer/MySQL.pm via GitHub

  • Loading branch information...
1 parent 5e4ad95 commit 16ef3f3c27d9785c02cc6358bc38aab0f0b09494 @atomicstack atomicstack committed with tsee May 27, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/Data/Consumer/MySQL.pm
@@ -41,6 +41,7 @@ $VERSION= '0.12';
table => 'T',
id_field= > 'id',
flag_field => 'done',
+ lock_prefix => $worker_name,
unprocessed => 0,
working => 1,
processed => 2,
@@ -95,7 +96,8 @@ It is B<strongly> recommended that end-users of this module explicitly
specify a lock_prefix in production environments. A multi-process
system relying on mutual exclusion B<will> run into problems when
consuming from the same source if $0 and $table are not identical
-between workers.
+between workers. Generally, using the name of the consuming module
+should suffice (e.g. Your::Data::Consumer::Worker).
=item unprocessed => 0

0 comments on commit 16ef3f3

Please sign in to comment.