summaryrefslogtreecommitdiff
path: root/lib/presque/worker/Role/Fork.pm
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-05-13 18:24:54 +0200
committerfranck cuny <franck@lumberjaph.net>2010-05-13 18:24:54 +0200
commitecbe5311a585a74e7141e25d1c22e87aa851c8ee (patch)
tree7b526f5ed36defe45383005b6bcc1a85e74328e2 /lib/presque/worker/Role/Fork.pm
parentadd deps to makefile (diff)
downloadpresque-worker-ecbe5311a585a74e7141e25d1c22e87aa851c8ee.tar.gz
some roles to handle dispatch (fork), logging, worker life (handle
signals, register, unregister, ...) and REST interface to presque
Diffstat (limited to 'lib/presque/worker/Role/Fork.pm')
-rw-r--r--lib/presque/worker/Role/Fork.pm12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/presque/worker/Role/Fork.pm b/lib/presque/worker/Role/Fork.pm
new file mode 100644
index 0000000..47efc31
--- /dev/null
+++ b/lib/presque/worker/Role/Fork.pm
@@ -0,0 +1,12 @@
+package presque::worker::Role::Fork;
+
+use Moose::Role;
+
+has fork_dispatcher => (
+ is => 'ro',
+ isa => 'Bool',
+ default => 1,
+ predicate => 'has_fork_dispatcher'
+);
+
+1;