lib/beanstalker/daemonizer_handler.rb in beanstalker-0.4.10 vs lib/beanstalker/daemonizer_handler.rb in beanstalker-0.4.11
- old
+ new
@@ -15,9 +15,12 @@
Worker.custom_error_handler = option(:error_handler)
end
if option(:timeout_handler)
Worker.custom_timeout_handler = option(:timeout_handler)
end
+ if option(:before_filter)
+ Worker.before_filter = option(:before_filter)
+ end
@worker = Worker.new(binding,
:tube => option(:tube),
:servers => option(:servers),
:worker_id => worker_id,
:workers_count => workers_count,